SowleMan
asked on
How can I determine the number of characters allowed in a text field?
I would like to display the number of characters typed so far and the max number of chars allowed in a text field. I created a function to accomplish this and I can use this function for any text field. The logic is working well, but the max number of characters is set by a simple VBA assignment before calling the function (("intMaxChars = 30".) I prefer to retrieve this number from the field's definition in the database. How can I accomplish this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Try this
intMaxChars = CurrentDb.TableDefs("Table Name").Fie lds("Field Name").Siz e
intMaxChars = CurrentDb.TableDefs("Table
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Gustav's solution worked immediately. It was exactly what I wanted and needed at that moment.
IrogSinta and Ryan Chong provided good stuff for me to study because I saw new things in their examples.
IrogSinta and Ryan Chong provided good stuff for me to study because I saw new things in their examples.
intMaxChar = me.recordsetclone.fields("