RT Error 2478. . . (1 Viewer)

jcruzAME

Registered User.
Local time
Today, 16:02
Joined
Oct 5, 2011
Messages
135
I get this error when I run code that tried to requery another form if it is active. If the form isn't loaded, there's no problem with the code.

I get "Microsoft Access doesn't allow you to use this method in the current view."

Here's the code I have (Access 2010):

If CurrentProject.AllForms("frmClientInfo").IsLoaded = True Then
Forms!frmClientInfo!cboPrimaryContact.Requery
Forms!frmClientInfo!cboSecondaryContact.Requery
End If

Can't find anything just Googling and such.

Thanks in advance.
 

jcruzAME

Registered User.
Local time
Today, 16:02
Joined
Oct 5, 2011
Messages
135
Figured it out. One of them was in Design view when the error popped up.
 

Users who are viewing this thread

Top Bottom