I imagine this should be pretty simple.
I'd like to save the source values in several combo boxes on closing a form. I set up a button that prompts a subroutine to save the value of a combobo, ie,
Private Sub closeform_click()
save1 = employeeone.Value
DoCmd.Close acForm, "employeeselect", acSaveYes
End Sub
and then call that value on opening the form like so:
Private Sub Form_Open(cancel As Integer)
employeeone.Value = save1
End Sub
I may be in excel vba mode and am not saving the value correctly in the first sub.
Any help I appreciate
I'd like to save the source values in several combo boxes on closing a form. I set up a button that prompts a subroutine to save the value of a combobo, ie,
Private Sub closeform_click()
save1 = employeeone.Value
DoCmd.Close acForm, "employeeselect", acSaveYes
End Sub
and then call that value on opening the form like so:
Private Sub Form_Open(cancel As Integer)
employeeone.Value = save1
End Sub
I may be in excel vba mode and am not saving the value correctly in the first sub.
Any help I appreciate