GregoryWest
Registered User.
- Local time
- Yesterday, 23:00
- Joined
- Apr 13, 2014
- Messages
- 161
I have a little code here. If I include the code with the ORDER BY clause I crash with a 3095 error. If I comment the ORDER BY out, and execute the second select command instead everything works.
Question, what am I missing. I have tried braces, bracket, parenthesizes you name it nothing seems to work
code:
strSql_in = "SELECT * FROM MailRecs ORDER BY [MailRecs.owneraddr1] where active;"
'strSql_in = "SELECT * FROM MailRecs where active;"
MsgBox strSql_in
Set rs_in = DBEngine(0)(0).OpenRecordset(strSql_in)
Question, what am I missing. I have tried braces, bracket, parenthesizes you name it nothing seems to work
code:
strSql_in = "SELECT * FROM MailRecs ORDER BY [MailRecs.owneraddr1] where active;"
'strSql_in = "SELECT * FROM MailRecs where active;"
MsgBox strSql_in
Set rs_in = DBEngine(0)(0).OpenRecordset(strSql_in)