B
Brian
I have a SQL Server 2005 back-dnd with an Access 2007 front-end. Tables in
SQL are linked into Access. I want to be able to, with a VBA function, be
able to find the field data type and if a string, length assuming the
function is given the table name and field name.
Reason - All of my forms are unbound text fields...I copy data from the
table to the form and when the user clicks "save" the data is written back
down to the table. Problem is that if the data is too long, Access gives an
error indicating such, but doesn't tell which field or what the maximum
length is. Since I have error checking built into each form, I thought I'd
add this type of checking as well.
Can anyone help?
SQL are linked into Access. I want to be able to, with a VBA function, be
able to find the field data type and if a string, length assuming the
function is given the table name and field name.
Reason - All of my forms are unbound text fields...I copy data from the
table to the form and when the user clicks "save" the data is written back
down to the table. Problem is that if the data is too long, Access gives an
error indicating such, but doesn't tell which field or what the maximum
length is. Since I have error checking built into each form, I thought I'd
add this type of checking as well.
Can anyone help?