Hi, Im doing VBScript and Im trying to update the Access DB.
I have a table Quota and I want to update it with the following information.
set rs = conn.execute("select * from Quota")
dim x = rs("quota") <----A
dim y = Request.Form("po_amt") <----B
dim quotaLeft = x - y
conn.execute("update Quota set quota = "& quotaLeft &"")
Request.Form is what the user had entered.
But i keep getting a compilation error :"Expected End Of Statement" for both of the declared statements A & B
How am I supposed to declare them? I need the information to update the table. Is there any other way? or This cannot be done?
Plss...help ?
I have a table Quota and I want to update it with the following information.
set rs = conn.execute("select * from Quota")
dim x = rs("quota") <----A
dim y = Request.Form("po_amt") <----B
dim quotaLeft = x - y
conn.execute("update Quota set quota = "& quotaLeft &"")
Request.Form is what the user had entered.
But i keep getting a compilation error :"Expected End Of Statement" for both of the declared statements A & B
How am I supposed to declare them? I need the information to update the table. Is there any other way? or This cannot be done?
Plss...help ?

Comment