C
Charles D Clayton Jr
A2K
I needed a combo box to remember the last value a user selects and
make that the default value so that next time they open the form it
will already have that value in the combo box. I searched the
archives and found this code:
Me.cboTest.DefaultValue = """" & Me.cboTest.Value & """"
I put it in the AfterUpdate Event but nothing works. I select a value
and then close out the form and then reopen and there is nothing in
the combo box displayed. If I should put a value in the Default
setting for the properties, then it works just fine but not from code.
I re-searched the archives and everyone seems to agress that this
would work. The only additional information I found was something
that said "default values" are only for new records.
Can anybody suggests why this is not working? Or give another
suggestion on how to solve me problem?
Thanks,
Charles D Clayton Jr
I needed a combo box to remember the last value a user selects and
make that the default value so that next time they open the form it
will already have that value in the combo box. I searched the
archives and found this code:
Me.cboTest.DefaultValue = """" & Me.cboTest.Value & """"
I put it in the AfterUpdate Event but nothing works. I select a value
and then close out the form and then reopen and there is nothing in
the combo box displayed. If I should put a value in the Default
setting for the properties, then it works just fine but not from code.
I re-searched the archives and everyone seems to agress that this
would work. The only additional information I found was something
that said "default values" are only for new records.
Can anybody suggests why this is not working? Or give another
suggestion on how to solve me problem?
Thanks,
Charles D Clayton Jr