I am trying to pass two values into a subroutine for an Insert statement. It appears though that "value" is some kind of reserved word and that it is required rather than the value1 and value2 below. Is there another way to do it?
[tt]Sub AddRecord( value1, value2 )
DataConn.Execute = "INSERT into compservices (id, type, fee) " &_
"VALUES (" & session("id"
& ", " & value1 & ", " & value1 & "
"
End Sub[/tt]
Here is where the subroutine is being used, but it does not "like" the (ID, Fee) as apparantly that is wrong too:
[tt]rslookup.MoveFirst
do while not rslookup.EOF
ID = rslookup("ID"
Fee = Request("Fee"
If Request(ID) = 1 then AddRecord(ID, Fee)
rslookup.MoveNext
loop[/tt] Don
don@pc-homepage.com
Experienced in HTML, Perl, VBScript, PWS, IIS and Apache. Run OS/2 Warp 4, BeOS v5 and Windows NT/2000 (only when I have to!)
[tt]Sub AddRecord( value1, value2 )
DataConn.Execute = "INSERT into compservices (id, type, fee) " &_
"VALUES (" & session("id"
End Sub[/tt]
Here is where the subroutine is being used, but it does not "like" the (ID, Fee) as apparantly that is wrong too:
[tt]rslookup.MoveFirst
do while not rslookup.EOF
ID = rslookup("ID"
Fee = Request("Fee"
If Request(ID) = 1 then AddRecord(ID, Fee)
rslookup.MoveNext
loop[/tt] Don
don@pc-homepage.com
Experienced in HTML, Perl, VBScript, PWS, IIS and Apache. Run OS/2 Warp 4, BeOS v5 and Windows NT/2000 (only when I have to!)