You're absolutely correct that field size isn't an option in Memo fields, because the size of a Memo field is so large...
To get the size of a Text field, you can use
CurrentDb.TableDefs("NameOfTable").Fields("NameOfField").Size
See whether setting the control's ControlTip Text property gives you the effect for which you're looking.
--
Doug Steele, Microsoft Access MVP
http://www.AccessMVP.com/djsteele
Co-author: "Access 2010 Solutions", published by Wiley
(no e-mails, please!)
"brian_kj" wrote in message news:*** Email address is removed for privacy ***...
I would like to add a hover button on my form's text boxes (frmAnswer.txtCom1, txtCom2, txtCom3...) that would allow the user to know just how many characters they can insert in these particular comment text boxes. This form's record source = tblComments
where the Data Types are either Memo or Text. I have not been successful at figuring out how to programically obtain a field size in the text Data Type AND as an observation, the field size doesn't appear to be available in the memo data type. Unfortunately
the only part I can figure out is the hover part:
frmAnswer OnOpen()
Me.Controls("txtCom").Hyperlink.ScreenTip = "Enter table's field size"
Is this possible in Access 2003?
Doug Steele, Microsoft Access MVP http://www.AccessMVP.com/djsteele (no e-mails, please!)