This is the VBA code executed from OnClick on a form's command button, to run 4 macros:
Private Sub Command160_Click()
DBEngine(0)(0).Execute "Append to Delivery List Table", dbFailOnError
DBEngine(0)(0).Execute "Print Work Order", dbFailOnError
DBEngine(0)(0).Execute "Print Final Inspection", dbFailOnError
DBEngine(0)(0).Execute "New Record", dbFailOnError
End Sub
An error message states "Compile Error", "Variable Not Defined"
Would appreciate your help in de-bugging this. Thanks.
Private Sub Command160_Click()
DBEngine(0)(0).Execute "Append to Delivery List Table", dbFailOnError
DBEngine(0)(0).Execute "Print Work Order", dbFailOnError
DBEngine(0)(0).Execute "Print Final Inspection", dbFailOnError
DBEngine(0)(0).Execute "New Record", dbFailOnError
End Sub
An error message states "Compile Error", "Variable Not Defined"
Would appreciate your help in de-bugging this. Thanks.