Combo Box requery

  • Thread starter Thread starter JK
  • Start date Start date
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?
 
Back
Top