dulla
Technical User
- Feb 3, 2003
- 54
Hello i cannot get this statement to execute in vba:
Private Sub Operation_AfterUpdate()
DoCmd.RunSQL ("SELECT Last(UnitRate.UnitRate) AS LastOfUnitRate FROM UnitRate RIGHT JOIN EmpTicket ON UnitRate.Operation = EmpTicket.Operation;")
End Sub
i get the error: a run sql action requires an argument consisting of an sql statement.
Please help!
ameen
Private Sub Operation_AfterUpdate()
DoCmd.RunSQL ("SELECT Last(UnitRate.UnitRate) AS LastOfUnitRate FROM UnitRate RIGHT JOIN EmpTicket ON UnitRate.Operation = EmpTicket.Operation;")
End Sub
i get the error: a run sql action requires an argument consisting of an sql statement.
Please help!
ameen