WhitePhantom
New Member
Hi,
I've an ASP ThankYou page that uses SQL to insert a record into a db every time I get an enquiry, but it's not working now for some reason that I can't figure out.
The SQL string consists of the following:
It has been coded like this for the last couple of years, always working fine, and I don't know what has changed. When I replace the " & now() & " with an actual date (eg. '20100518') it works perfectly. I've tried replacing now() with date() but that also give the 500 error.
The EnqiryDate field in database is set up as type datetime, length 8.
Help please!
J.
I've an ASP ThankYou page that uses SQL to insert a record into a db every time I get an enquiry, but it's not working now for some reason that I can't figure out.
The SQL string consists of the following:
Code:
strSQL = "Insert into tblEnquiries (EnquiryDate, EnqName, Address, Email......) VALUES('" & now() & "', '" & EnqName & "','" & Address & "', '" & Email & "'....
It has been coded like this for the last couple of years, always working fine, and I don't know what has changed. When I replace the " & now() & " with an actual date (eg. '20100518') it works perfectly. I've tried replacing now() with date() but that also give the 500 error.
The EnqiryDate field in database is set up as type datetime, length 8.
Help please!
J.