Combo Box requery

J

JK

I have the following code to requery a combobox on a seperate form.
'~~~~~~~~~
Private Sub Form_Unload(Cancel As Integer)
if currentproject.Allforms("formname").IsLoaded = true then
forms!formname!controlname.Requery
DoEvents
End If
'~~~~~~~~~
I am using this code to automatically change the cityID combobox, I have
many forms that link to this form so how can I include all the possible forms
into thi one Unload Event Procedure?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top