|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Expected end of statement
strSQL = "INSERT INTO [order] (client_id, station_id, comments) VALUES ('" & clientid "', " & stationid & ", '" & comments & "')"
response.Write(strSQL) I'm getting an expected end of statement error on the above? client_id is a text field, station_id is numeric and comments is text, I get the error also if I replace the variables (clientid, stationid and comments) with the actual values (e.g. user1, 3 and hello) Whats going wrong? Cheers |
|
#2
|
|||
|
|||
|
Missing &
Try Code:
strSQL = "INSERT INTO [order] (client_id, station_id, comments) VALUES ('" & clientid & "', " & stationid & ", '" & comments & "')"
|
![]() |
| Viewing: ASP Free Forums > Database > SQL Development > Expected end of statement |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|