Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Settting text box default valure from combo box 1

Status
Not open for further replies.

jpl458

Technical User
Sep 30, 2009
337
US
Have a table of event names that I want to select into a data entry form and remains there till its changed. I call up the list of events from a combobox (Eventcombo) then after update move the selected event to a text \box with the following:

Me!Text133 = Me!Eventcombo.Column(1)

It puts the correct data in the textbox, but other operation may cause it to be cleared.

I tried to set the textbox defaultvalue using the following

Me!Text133.DefaultValue = Me!Eventcombo.Column(1)

and get #Name.

Any help would be appreciated.

Thanks in advance.

Merry Xmas

jpl
 
Perhaps this ?
Me!Text133.DefaultValue = Chr(34) & Me!Eventcombo.Column(1) & Chr(34)


Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
That did the trick. I assume chr(34) is a quote mark.

Thanks

jpl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top