Hi Everyone,
I have a form “FormMain” on which i have a combo box which pulls values from a table. If the combo box does not have the choice the user is looking for, i added a button that opens a form “FormPopAdd” where the user can enter a new record for that combo box (the user must use a command button to save the new record). Once the user clicks the save button on the FormPopAdd form I have a piece of code that refreshes the original form FormMain behind the pop up form so that the new record can be found in the combo box:
If CurrentProject.AllForms("FormMain").IsLoaded Then
Forms("FormMain").Refresh
End If
This works well if the user has not yet made any changes to the record on FormMain, if the user has made changes, once the code runs, the record is saved – I don’t want that. What I need is for the combo box to be updated on FormMain and not the entire record. How is that Done?
I know it’s a little long, but if you can get me any ideas, I would really appreciate it.
Thanks