Hello Everyone:
I have one button on Form A that calls Form B. In Form B I have in Private Sub Form_AfterUpdate():
Forms!FormA!CbComboBox.Requery
End Sub
It works fine if I call Form B from Form A, but if I load Form B by itself (not from the button, but directly) I get an error message when I click on the close button on FORM B.
It seems it is trying to Requery Form A but I do not know how to tell the Form B that it was not loaded from Form A but directly.
Sorry if I am not making to much sense.
Best regards,
G.E.
I have one button on Form A that calls Form B. In Form B I have in Private Sub Form_AfterUpdate():
Forms!FormA!CbComboBox.Requery
End Sub
It works fine if I call Form B from Form A, but if I load Form B by itself (not from the button, but directly) I get an error message when I click on the close button on FORM B.
It seems it is trying to Requery Form A but I do not know how to tell the Form B that it was not loaded from Form A but directly.
Sorry if I am not making to much sense.
Best regards,
G.E.