G
Gail
Hello All,
Thank you for this really helpful forum.
I want to allow the users of my database to click a button
that would enable them to permanently change the default
value of a combo box (until the next time they click the
button). In other words, the default value of the combo
box would remain even after closing and re-opening the
form. I have tried several different ways but have been
unsuccessful in getting Access to put a string in the
Default Value property box--maybe this is not possible?
Code such as the following (from Dev Ashish of Access Web)
only works while the form remains open, once the form is
closed and re-opened the default value is gone:
const cQuote = """"
me!Control.DefaultValue = cQuote & meControl.Value & cQuote
I don't think I can change the default value of the table
field because my tables are linked, but if anyone knows a
way, I will try it.
Thanks again,
Gail
Thank you for this really helpful forum.
I want to allow the users of my database to click a button
that would enable them to permanently change the default
value of a combo box (until the next time they click the
button). In other words, the default value of the combo
box would remain even after closing and re-opening the
form. I have tried several different ways but have been
unsuccessful in getting Access to put a string in the
Default Value property box--maybe this is not possible?
Code such as the following (from Dev Ashish of Access Web)
only works while the form remains open, once the form is
closed and re-opened the default value is gone:
const cQuote = """"
me!Control.DefaultValue = cQuote & meControl.Value & cQuote
I don't think I can change the default value of the table
field because my tables are linked, but if anyone knows a
way, I will try it.
Thanks again,
Gail