|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
||||
|
||||
|
Concatination problems with form variables
this is really weird. i'm building a sql statement, and i want to concatinate a string right next to a form variable. well it wont let me, so i think. here's the syntax i'm using and the error. well actually the syntax is in the error.
Code:
Microsoft VBScript compilation error '800a0401'
Expected end of statement
/editdetail.asp, line 10
makechanges="update sheetlog set datein = '"&request.form("datein")&" 12:00:00 PM', keyedinby = "&request.form("inby")&happy&" where logid = "&request.querystring("edid")
---------------------------------------------------------------------------------------------------------------------------^
says there is something wrong with 'happy'. its just a string made up of either form variables and strings or just a string. |
|
#2
|
|||
|
|||
|
use proper spacing
Code:
makechanges="update sheetlog set datein = '" & _
request.form("datein") & " 12:00:00 PM', keyedinby = " & _
request.form("inby") & happy & _
" where logid = " & request.querystring("edid")
i don't know about ASP but in VB6 happy& would be a Long data type variable. it's probably seeing it as that and not concatination.
__________________
Programmer's Corner |
|
#3
|
||||
|
||||
|
awesome. didn't realize that the spacing made such a huge difference! thanks!
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Concatination problems with form variables |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|