Invalid Procedure Call or Argument

M

michael c

Yesterday my form worked fine. Today, when I press a
command button to open a form using the docmd command, I
get an "invalid procedure call or argument" error. My code
is:

Private Sub Cost_Centers_Button_Click()
DoCmd.OpenForm "frmTECostCenters", acNormal
End Sub

Private Sub Employees_Button_Click()
DoCmd.OpenForm "frmMain", acNormal
End Sub

Private Sub Fleet_All_Vehicles_Button_Click()
DoCmd.OpenForm "frmFleetAllVehicles", acNormal
End Sub

Private Sub Fleet_Car_Allowance_Button_Click()
DoCmd.OpenReport "rptFleetCarAllowance", acViewPreview
End Sub

Private Sub Fleet_Car_Types_Button_Click()
DoCmd.OpenForm "frmFleetCarTypes", acNormal
End Sub
 
G

Gary Miller

Michael,

What happens when you do a CompileAndSaveAll in the code
window? You may also want to check your references and make
sure none disappeared.
 

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