bogglebeats
Registered User.
- Local time
- Today, 11:43
- Joined
- Dec 19, 2002
- Messages
- 53
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