|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Expected end of statement
Can anyone help please.
Using vbscript: Code: strSQL = "SELECT CustomerID, CustomerName FROM CustomerDetails "&_ "WHERE CustomerID=Session("asp_login_unique_id"); " Error: Microsoft VBScript compilation (0x800A0401) Expected end of statement /SMart/html/advert.asp, line 118, column 27 "WHERE CustomerID=Session("asp_login_unique_id"); " --------------------------^ Line 118, col 27 is immediately after the open bracket in the Where statement and before "asp Please help, thanks David |
|
#2
|
|||
|
|||
|
Expected end of statement
Solved it.
Code which works is: strSQL = "SELECT CustomerID, CustomerName FROM CustomerDetails "&_ "WHERE CustomerID = ("&Session("asp_login_unique_id")&"); " David |
![]() |
| Viewing: ASP Free Forums > Database > SQL Development > Expected end of statement |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|