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!

Defaultvalue of unbound textbox

Status
Not open for further replies.

Jonath

Technical User
Jul 13, 2007
27
FR

Hi,

I have a form with an unbound textbox, and would like to change its defaultvalue when its text is modified.

I tried, on lostfocus and afterupdate events:

-textbox.defaultvalue = textbox.text
-textbox.defaultvalue = """" & textbox.text & """"

but when I close and re-open the form, defaultvalue is NOT changed.

Any suggestions?
Thanks in advance.

Jonath
 
I would say that the best bet is to create a table to hold a variety of values, such as this. It can be retrieved with DlookUp. To save the default value, you would need to save the form, which would mean that you could not create an mde or protect your code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top