C
Combo box type - help
Hi, i'm having a bit of a problem and i'm not getting where i want.. I have a
textbox on one form that i need to keep the last value(before closing the
form the last time it was used).. There's an input box connected to it, where
i can change the value (that's working ok) but i want that value to remain
there after closing and opening the form..
I tried to use this code:
Me!comboName.DefaultValue = """" & Me!ComboName & """"
-It's not working.. the textbox gets blank after i close and reopen the form
I also tried this:
Dim value As double..
...on click()
value = box.value
box.DefaultValue = value
I dont know why but the code is also not working..no default value is added
to the textbox data
now i'm trying to do this, but i need your help with the code please:
Create a table only for the value i want to keep.. When i close the form (on
form_close()) i want the value on the textbox to be sent to the
table...then..when i open the form (on form_open()) i want the program to get
that value on the table..the last value added, and send it to textbox.. I
think this is the only way i can do it.. i really need that value to be saved
every time i close the form and obviously to be there when i open.. I hope
you can help me with the code..and if you know another way to do it.. be my
guest..
Many thanks
Nuno
textbox on one form that i need to keep the last value(before closing the
form the last time it was used).. There's an input box connected to it, where
i can change the value (that's working ok) but i want that value to remain
there after closing and opening the form..
I tried to use this code:
Me!comboName.DefaultValue = """" & Me!ComboName & """"
-It's not working.. the textbox gets blank after i close and reopen the form
I also tried this:
Dim value As double..
...on click()
value = box.value
box.DefaultValue = value
I dont know why but the code is also not working..no default value is added
to the textbox data
now i'm trying to do this, but i need your help with the code please:
Create a table only for the value i want to keep.. When i close the form (on
form_close()) i want the value on the textbox to be sent to the
table...then..when i open the form (on form_open()) i want the program to get
that value on the table..the last value added, and send it to textbox.. I
think this is the only way i can do it.. i really need that value to be saved
every time i close the form and obviously to be there when i open.. I hope
you can help me with the code..and if you know another way to do it.. be my
guest..
Many thanks
Nuno