hey thenelson,
The email is being sent from the MS SQL server... everything seems to be fine except for the error message which does come up...
The Dlookup is working and it is picking the name and passing it in my stored procedure.
What other way is there to run a stored procedure from MS Access?
Thanks,
Main Topics
Browse All Topics





by: thenelsonPosted on 2009-06-19 at 14:33:16ID: 24670262
You cannot put
DLookup("UserFirstName", "tblListOfContacts", "UserNetworkName = '" & fOSUserName() & "'")
in a string. VBA will treat it as a string not as code.
"EXEC "
is not a valid SQL key word. Build your query in the query builder, switch to SQL mode and paste that into your code.