Invalid Procedure Call

B

bw

I'm getting a dialog message "Invalid Procedure Call" from "Microsoft
Access", and I have no idea of where it's coming from or what is causing it.
I have performed a "Find and Replace" on the word "Procedure" and the only
ones found are listed below. In the Report_Open Procedure, both of the
queries execute properly on their own.

Anyone know what's causing this error message?
Thanks,
Bernie
-----------------------------
Option Compare Database
Option Explicit

Private Sub Report_Close()
DoCmd.Restore
End Sub

Private Sub Report_Open(Cancel As Integer)
DoCmd.SetWarnings False
DoCmd.OpenQuery "qryProjectModulesCreate", acNormal, acEdit
DoCmd.OpenQuery "qryProjectModulesAdd", acNormal, acEdit
DoCmd.SetWarnings True
DoCmd.Maximize
End Sub
-------------------------------
 
Top