By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,991 Members | 1,887 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,991 IT Pros & Developers. It's quick & easy.

set text box default value to be the current value

P: n/a
I've got a text box on a form where the default value shows - C:/
The user can change the default to whatever they want - D:/
I'd like to put a button next to the field that will change the default
from C:/ to D:/ so the next time the form is opened D:/ is showing.

Any ideas?

Thanks
Charlie

Aug 21 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi Charlie

Put all your default settings in a table and populate controls with these on
loading the form.

Your defaults table only needs to be a couple of fields - one for the name
of the default and say a text field to carry the default setting. Text field
is good cause you can put anything in it.

Add a DLookup in the Loan event of the form to populate the default value of
the control.

The button on the form can be set to change the default - maybe toggling
between the two values.

Jeff Pritchard
________________
Asken Research Pty. Ltd.
Access Database Developers
http://www.asken.com.au

<tn*********@gmail.comwrote in message
news:11*********************@p79g2000cwp.googlegro ups.com...
I've got a text box on a form where the default value shows - C:/
The user can change the default to whatever they want - D:/
I'd like to put a button next to the field that will change the default
from C:/ to D:/ so the next time the form is opened D:/ is showing.

Any ideas?

Thanks
Charlie

Aug 22 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.