I'm trying to post the values of a large form to an access database. I have the code writing the sql string to the screen for debugging. If I cut and paste the code into an access query in sql design mode, it accepts the data without any problem. But in my asp code, I keep getting
Is there some special way to open the ado connection in order to make this work? Here is my current connection
Where mdbpath is a valid path to the database file.
This is the sql string with the test data
This is for a very basic, barebones application form for a client.
If anyone can shed some light on this, I would be extremely grateful.
Code:
Microsoft JET Database Engine error '80040e14'
Syntax error in INSERT INTO statement.
Is there some special way to open the ado connection in order to make this work? Here is my current connection
Code:
connstr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & mdbpath
set objconn = server.CreateObject("adodb.connection")
objconn.Open connstr
Where mdbpath is a valid path to the database file.
This is the sql string with the test data
Code:
Insert Into employee (CreateDate,position, datetoday, ssno,
phonework, license, seccity, mreduties, smrephone, yearsknown,
refrelation, yearsknown2, refrelation2, otherdegreetype, fname, crcity,
state2, availother, mrespvname, smrecity, tmretodate, hsdegree, cgcity,
mnapplicants, lname, phonecell, seccity2, seccity3, mrecity, mrestate,
smrefromdate, tmrejobtitle, refname, mi, phonehome, crstreet1, crstreet2,
prcity, startdate, secincedent, secincedent2, secincedent3, mrephone,
tmrefax, tmrecompany, highschool, authsig, crstate, dlstate, smrestate,
smresalary, cgdegree, authssno, authcity, authstate, crzip, mretodate,
smretodate, lsmreleave, tmrestate, tmresalary, tmreleave, hscity,
prstreet1, prstreet2, tmrephone, refname2, college, otheredcity,
authprintname, authaddress, authaddress2, przip, smrefax, smrecompany,
tmrecity, othered, otheredstate, signature, sigdate, dlno, dltype,
mrefax, tmrespvname, tmreduties, refphone, refphone2, hsstate,
mrecompany, mrejobtitle, mresalary, smrejobtitle, cgstate, autgsigdate,
authbdate, caapplicants, mrefromdate, mreleave, smrespvname, smreduties,
tmrefromdate, schoolname) Values
('8/17/2007','abc', '8/17/2007', 'abc', 'abc', 'abc', 'abc', 'abc', 'abc',
2, 'abc', 5, 'abc', 'abc', 'abc', 'abc', 'abc', 'whenever I feel like
it', 'abc', 'abc', '01/01/06', 'abc', 'abc',
1, 'abc', 'abc', 'abc', 'abc', 'abc', 'abc', '01/01/03', 'abc', 'abc', 'ab
c', 'abc', 'abc', 'abc', 'abc', '8/17/2007', 'abc', 'abc', 'abc', 'abc', '
abc', 'abc', 'abc', 'Signature', 'abc', 'abc', 'abc', 'abc', 'abc', 'abc',
'abc', 'abc', 'abc', '01/01/02', '01/01/04', 'abc', 'abc', 'abc', 'abc',
'abc', 'abc', 'abc', 'abc', 'abc', 'abc', 'abc', 'abc', 'abc', 'abc', 'abc
', 'abc', 'abc', 'abc', 'abc', 'abc', 'abc', '8/17/2007', 'abc', 'abc', 'a
bc', 'abc', 'abc', 'abc', 'abc', 'abc', 'abc', 'abc', 'abc', 'abc', 'abc',
'8/17/2007', '8/17/2007',
1, '01/01/01', 'abc', 'abc', 'abc', '01/01/05', 'abc');
This is for a very basic, barebones application form for a client.
If anyone can shed some light on this, I would be extremely grateful.