Invalid Procedure Call or Argument

  • Thread starter Thread starter michael c
  • Start date Start date
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
 
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.
 
Back
Top