M
michael c
Hi. I have a make table query that executes when when a
clock on my form hits a certain time like so:
Private Sub Form_Timer()
Me.Clock = Format(Now, "h:nn:ss AM/PM")
If Me.Clock = #6:17:40 PM# Then
DoCmd.DeleteObject acTable, "tblManagementShippedToPlan"
CurrentDb.QueryDefs("qryManagementShippedToPlan").Execute
dbFailOnError
End If
End Sub
An error shows up at the line...
CurrentDb.QueryDefs("qryManagementShippedToPlan").Execute
dbFailOnError
....called Runtime Error 3061 "Too few parameters. Expected
8." I have no idea why. My make table query has 5 columns,
not 8, so I'm not sure what to do. Any suggestions would
be great. Thanks!!
clock on my form hits a certain time like so:
Private Sub Form_Timer()
Me.Clock = Format(Now, "h:nn:ss AM/PM")
If Me.Clock = #6:17:40 PM# Then
DoCmd.DeleteObject acTable, "tblManagementShippedToPlan"
CurrentDb.QueryDefs("qryManagementShippedToPlan").Execute
dbFailOnError
End If
End Sub
An error shows up at the line...
CurrentDb.QueryDefs("qryManagementShippedToPlan").Execute
dbFailOnError
....called Runtime Error 3061 "Too few parameters. Expected
8." I have no idea why. My make table query has 5 columns,
not 8, so I'm not sure what to do. Any suggestions would
be great. Thanks!!