Need more information. Would help to see the query code.
Main Topics
Browse All TopicsHi,
I am using MS Access for my application. But when the transaction is started then I get the following error message :
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] The SELECT statement includes a reserved word or an argument name that is misspelled or missing, or the punctuation is incorrect.
I am using DSN less connection string in ASP page.
I ckecked out everything but it didn't work after changing the name of the variables.
Can someone please help me.
Thanks in advance..
yagya
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Sorry I forgot to put the connection string and the query being used. They are as follows :
set con = server.createobject("ADODB
con.Open "Driver={Microsoft Access Driver (*.mdb)};dbq= --my data path"
if mygroup = "Test Mail" then
con.close
con.open "Driver={Microsoft Access Driver (*.mdb)};dbq= my data path"
mysql = "select email from email"
set rs = con.execute(mysql)
end if
Try dimming the rs as a recordset
Dim rs
SET rs= Server.CreateObject("ADODB
set con = server.createobject("ADODB
con.Open "Driver={Microsoft Access Driver (*.mdb)};dbq= --my data path"
if mygroup = "Test Mail" then
con.close
con.open "Driver={Microsoft Access Driver (*.mdb)};dbq= my data path"
mysql = "select email.* from email"
rs.ActiveConnection = con
rs.Open str, con,1,2
end if
Here is how I am connecting to a database on websites Almost word for word
Dim db
Dim rs
Dim str
db = "driver={Microsoft Access Driver (*.mdb)};dbq= --Data Path--;"
'OR use this connection string
'db = "Provider=Microsoft.Jet.OL
SET rs= Server.CreateObject("ADODB
str = "SELECT Email.* FROM Email"
rs.ActiveConnection = db
rs.Open str, db,1,2
If rs.Recordcount > 0 then
rs.movefirst
response.write rs(0)
End If
rs.Close
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:
Accept: Mach1pro {http:#9613639}
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
stevbe
EE Cleanup Volunteer
Business Accounts
Answer for Membership
by: Mach1proPosted on 2003-10-23 at 08:07:08ID: 9607262
You need to post your connection string