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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-07-03, 14:40
Bigced_21 Bigced_21 is offline
Registered User
 
Join Date: Dec 2002
Location: KY
Posts: 54
Exclamation Syntax Error

Microsoft OLE DB Provider for SQL Server error '80040e14'

Line 1: Incorrect syntax near '789'.

/boilers/Blr_inspector_process.asp, line 63


This is the section that I have a problem with, but the line that's giving me the erroe has Badge_No in it:

' #### Update the HBC_Inspector record
strSQL = strSQL & "UPDATE HBC_Inspector SET "
strSQL = strSQL & "Contact_ID = " & Request.Form("contact_id") & ", "
strSQL = strSQL & "Inspector_EmployerDef_ID = " & Request.Form("inspector_employerdef_id") & ", "
strSQL = strSQL & "badge_no = '" & Replace(Request.Form("badge_no"), "'", "''")& "' "
strSQL = strSQL & " Where ID = " & Request.Form("ID")
ObjConn.Execute(strSQL)
Reply With Quote
  #2 (permalink)  
Old 03-08-03, 01:59
rahulqa rahulqa is offline
Registered User
 
Join Date: Feb 2003
Posts: 18
Check whether single quotes are added for the char type fields and not for int type fields.
Error is for number 789. Check it is int or char type field.
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