If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Syntax error in INSERT INTO statement

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-18-07, 12:14
birdy247 birdy247 is offline
Registered User
 
Join Date: Mar 2007
Posts: 9
Question Syntax error in INSERT INTO statement

Hi. I am using dreamweaver and and access database.

I have sucessfully created a login page etc...

However i now wish to create a page which can insert data into the database. I used dreamweaver to generate the code for this. When previewing the page i recive a error of the following form:

Microsoft JET Database Engine error '80040e14'

Syntax error in INSERT INTO statement.

/regis.asp, line 99


The line of code on that line is as follows:

96 Set MM_editCmd = Server.CreateObject("ADODB.Command")
97 MM_editCmd.ActiveConnection = MM_editConnection
98 MM_editCmd.CommandText = MM_editQuery
99 MM_editCmd.Execute
100 MM_editCmd.ActiveConnection.Close

Has any one got any ideas why it is erroring like this. Thanks
Reply With Quote
  #2 (permalink)  
Old 04-30-07, 11:54
khurram007 khurram007 is offline
Registered User
 
Join Date: Apr 2007
Posts: 29
Where did you put the value inside MM_editQuery variable? Please post from there.

Khurram.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On