|
tcbarker4 -> RE: Error trying to INSERT record using FP2003 DRW. (11/25/2007 22:15:52)
|
This is the Custom Query string that I typed in: INSERT INTO TblVehicle (AccountNr1) VALUES('"&request.form("AccountID")&"') When I click on Verify Query, it say that The query was verified with the selected database connection. But when I look at the code, this is what is shown: fp_sQry="INSERT INTO TblVehicle (AccountNr1) VALUES('""&request.form(""AccountID"")&""')" It appears that there are too many quotes. That is why I was wondering if the fpdbrgn1.inc file might have an issue because, as I understand it, that is the file that opens the connection and builds the query string. When I actually execute the code, I get the following error: Database Results Wizard Error Description: String or binary data would be truncated. Number: -2147217833 (0x80040E57) Source: Microsoft OLE DB Provider for SQL Server Because I was having this issue with my production table that had about 20 columns, I figured I eliminate some of the possible issues with no populating all the columns so I created a test table with only one column called AccountID.
|
|
|
|