Hi
I am a relative beginner with ASP and weak on syntax for sql
statements. Basically I modify something which works.
I have tblGroupContact with two fields both long integer - ContactID &
GroupID
I am using asp3.0 and VB Script
I have a querystring from another page with the url
http://localhost/gc6/www/LeaveGroup....D=82&groupID=1
With my poor syntax knowledge I have written the following SQL
statement (modified from one which works OK elsewhere):
strSQL = "SELECT * FROM tblGroupContact WHERE ContactID = "&
Replace(Request.QueryString("ContactID")) AND GroupID = "&
Replace(Request.QueryString("GroupID"))"
I get the error message:
Error Type:
Microsoft VBScript compilation (0x800A0401)
Expected end of statement
/gc6/www/LeaveGroup.asp, line 34, column 149
strSQL = "SELECT * FROM tblGroupContact WHERE ContactID = "&
Replace(Request.QueryString("ContactID")) AND GroupID = "&
Replace(Request.QueryString("GroupID"))"
Any help would be appreciated.
Thanks Colin