R
rob muzzy
Hi,
I am running MS Access 2000 (9.0.2720) and I have created the
following vb code in the background.
Private Sub Form_Load()
On Error Resume Next
DoCmd.DeleteObject acTable, ("tblEmployeeData")
DoCmd.DeleteObject acTable, ("tblLaborticketData")
'DoCmd.DeleteObject acTable, ("tblPartFamilyTotals")
'DoCmd.DeleteObject acTable, ("tblOpenFamilyValue")
On Error GoTo 0
DoCmd.OpenQuery ("qryMakeTblLaborticketData")
DoCmd.OpenQuery ("qryMakeTblEmployeeData")
DoCmd.OpenQuery ("qryNewEmployees")
DoCmd.Quit acQuitSaveAll
End Sub
when i compile and debug it works fine but when i click on the file to
run on load with form 1 as the start point i get "the expression on
load you entered as the event property setting produced the following
error. Object or class does not support the set of events."
can someone assist me in getting rid of this error?
thanks
Rob
I am running MS Access 2000 (9.0.2720) and I have created the
following vb code in the background.
Private Sub Form_Load()
On Error Resume Next
DoCmd.DeleteObject acTable, ("tblEmployeeData")
DoCmd.DeleteObject acTable, ("tblLaborticketData")
'DoCmd.DeleteObject acTable, ("tblPartFamilyTotals")
'DoCmd.DeleteObject acTable, ("tblOpenFamilyValue")
On Error GoTo 0
DoCmd.OpenQuery ("qryMakeTblLaborticketData")
DoCmd.OpenQuery ("qryMakeTblEmployeeData")
DoCmd.OpenQuery ("qryNewEmployees")
DoCmd.Quit acQuitSaveAll
End Sub
when i compile and debug it works fine but when i click on the file to
run on load with form 1 as the start point i get "the expression on
load you entered as the event property setting produced the following
error. Object or class does not support the set of events."
can someone assist me in getting rid of this error?
thanks
Rob