Refresh on form close using VBA

gsandy

Registered User.
Local time
Tomorrow, 10:45
Joined
May 4, 2014
Messages
104
I have combo box that lists data from another form (frmCity) . If the required data in not in the list then frmCity is opened, a new record is entered and form closed. The combo box in the first form (which has remained open) does not show the new entry unless it is closed and re-opened. How can I get the new record to show without closing and reopening?

Thanks Sandy
 
How about re-querying the combo box upon closing frmCity?

In the OnClose Event of frmCity try:

Forms!FirstForm!MyCombobox.requery

Replace FirstForm and MyCombobox with the actual names.
You can also put the code behind a close button on frmCity
 
Thanks Catalina that worked fine. Cheers Sandy
 

Users who are viewing this thread

Back
Top Bottom