How to autocomplete a report field?

eaglezinha

New member
Local time
Today, 16:22
Joined
Feb 19, 2008
Messages
2
Hello I need some help with access. In a table I have a field with text data format with 50. This field contain personal names. this is ok. I need create a report that do this:


NAME: Jonh Brightman---------------------------------------------

the name and - do 30 caracteres.


Thanks,
Eaglezinha
 
nametext = left(originalname & " ------------------------------------------",50)
 
Set the Control Source of the text box to be:
=Left(FieldNameFromTableOrQuery & "---------------------------------------------", 50). Then be sure to rename the text box by putting "txt" in front of the text box name. The text box and the actual field name from the table (or query) can not be the same in this case.
 

Users who are viewing this thread

Back
Top Bottom