application 1:
Application2 => 'receives':
the value of request.form ("ActID") is (for example) 5
lngRecordNo = Request.Form("ActId")
This SQL works perfectly
if I replace 5 with the variable lngRecordNo i get an error message
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'ActId= and membernr=13'.
I also tried replacing the variable lngRecordNo with Request.Form("ActId") => same problem
Thanks for tips on how to fix this.
---
have now tested this :
response.write Request.Form("ActId") => result = 5
response.write isnumeric(Request.Form("ActId")) => true
Code:
<form name = "list" onSubmit = "return validation (this);" METHOD = "POST" ACTION = "application2.asp"
Application2 => 'receives':
Code:
request.form ("ActID")
lngRecordNo = Request.Form("ActId")
This SQL works perfectly
Code:
StrSQL = "SELECT * FROM table_H INNER JOIN activity21 ON activity21.actID = table_H.actAnId WHERE ActId = 5 and membernr =" & Session ("uid")
if I replace 5 with the variable lngRecordNo i get an error message
Code:
StrSQL = "SELECT * FROM table_H INNER JOIN activity21 ON activity21.actID = table_H.actAnId WHERE ActId =" & lngRecordNo & "and membernr =" & Session ("uid")
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'ActId= and membernr=13'.
I also tried replacing the variable lngRecordNo with Request.Form("ActId") => same problem
Thanks for tips on how to fix this.
---
have now tested this :
response.write Request.Form("ActId") => result = 5
response.write isnumeric(Request.Form("ActId")) => true