S
sac
Have problem trying to INSERT to Access 2003 database. Don't think it's
permissions as can add records to this tables using FrontPage forms but want
to be able to add own code.
Can select and update on Customer table but not insert, e.g. this works:
qString = "UPDATE customer SET Firstname = 'Testchange' WHERE CustomerID =
't1234ft'"
rs.Open qString, conn
but this doesn't:
qString = "INSERT INTO customer (CustomerID, Title, FirstName, LastName,
HouseNum, Street, Town, Postcode, Email, Phone, Mobile, Password, CreditInd,
CustDate) VALUES (rccustomerid, rctitle, rcfirstname, rclastname, rchousenum,
rcstreet, rctown, rcpostcode, rcemail, rcphone, rcmobile, rcpassword,
rccreditind, rccustdate)"
rs.Open qString, conn
All I get is this message :
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.
Please contact the server administrator to inform of the time the error
occurred and of anything you might have done that may have caused the error.
More information about this error may be available in the server error log."
I get that message anytime there's any problem with my code so it's not
particularly helpful!
New to web development so any help very welcome!
permissions as can add records to this tables using FrontPage forms but want
to be able to add own code.
Can select and update on Customer table but not insert, e.g. this works:
qString = "UPDATE customer SET Firstname = 'Testchange' WHERE CustomerID =
't1234ft'"
rs.Open qString, conn
but this doesn't:
qString = "INSERT INTO customer (CustomerID, Title, FirstName, LastName,
HouseNum, Street, Town, Postcode, Email, Phone, Mobile, Password, CreditInd,
CustDate) VALUES (rccustomerid, rctitle, rcfirstname, rclastname, rchousenum,
rcstreet, rctown, rcpostcode, rcemail, rcphone, rcmobile, rcpassword,
rccreditind, rccustdate)"
rs.Open qString, conn
All I get is this message :
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.
Please contact the server administrator to inform of the time the error
occurred and of anything you might have done that may have caused the error.
More information about this error may be available in the server error log."
I get that message anytime there's any problem with my code so it's not
particularly helpful!
New to web development so any help very welcome!