richard luft
Registered User.
- Local time
- Today, 05:56
- Joined
- Jun 4, 2004
- Messages
- 63
Hope someone can help with the following:
I'm using Acess2 and am trying to run the following query in a sub function.
MySQL = "SELECT TOP 1 (DMin("[Date_From]","services","[clientID#] = a and [payer] = b"))
MySQL = MySQL & "AS x FROM SERVICES;"
When this line is compiled, I get errmsg of "Expected: end-of-statement", with [Date_From] highlighted.
Note that this SQL runs fine in a query window.
What's wrong?
TIA, Richard
I'm using Acess2 and am trying to run the following query in a sub function.
MySQL = "SELECT TOP 1 (DMin("[Date_From]","services","[clientID#] = a and [payer] = b"))
MySQL = MySQL & "AS x FROM SERVICES;"
When this line is compiled, I get errmsg of "Expected: end-of-statement", with [Date_From] highlighted.
Note that this SQL runs fine in a query window.
What's wrong?
TIA, Richard