DannyTmoov2
IS-IT--Management
I have tried the following sql statement in access and it works fine, however when I run it as part of my asp it seems to just ignore it? I get no error and the code continues it just doesn't update the database?
here is the ASP: -
contactno = session("contactno")
strSQL = "UPDATE client SET contact_no='" & contactno &"' WHERE client.client_id = '" & clientid & "';"
myConn.execute strSQL
response.write(strSQL)
and here is the output: -
UPDATE client SET contact_no='0123456789' WHERE client.client_id = 'client@mailaddress.com';
If I copy and paste the output into access it works fine, but just doesnt work in the asp??????
any help greatly appreciated
(I also have an INSERT statement that DOES work so I am confident all permissions are OK)
here is the ASP: -
contactno = session("contactno")
strSQL = "UPDATE client SET contact_no='" & contactno &"' WHERE client.client_id = '" & clientid & "';"
myConn.execute strSQL
response.write(strSQL)
and here is the output: -
UPDATE client SET contact_no='0123456789' WHERE client.client_id = 'client@mailaddress.com';
If I copy and paste the output into access it works fine, but just doesnt work in the asp??????
any help greatly appreciated
(I also have an INSERT statement that DOES work so I am confident all permissions are OK)