This topic is locked

Data Type Mismatch (again!)

1/27/2007 5:20:47 PM
ASPRunnerPro General questions
G
grinningdog author

OK it doesn't take a lot to confuse me but...
I have an application up and running - all except a couple of points that I'm working through. One of the things I wanted to do was to create a new page to enable an administrator to check and edit certain fields.
So, in normal edit view I can change the fields in question but if I create a new table view (with only a list page and an edit page) and the try to edit the information I get an error. I can switch back to the main edit page and that still lets me change those same fields.
Where is it (or me) going wrong?
Bob
[codebox]Error number -2147217913

Error description [Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression.

URL /triathlon3/admin/ConfirmPaid_edit.asp

SQL query select * from [TblIndividualEntry] where [ID]=304

Solution The SQL error 80040E07 occurs when attempting to use the "Insert Record" or the "Update Record"

server behavior to set the value of a column in Microsoft Access with an empty string ("").
[/codebox]

G
grinningdog author 1/28/2007

I think I solved my own problem! When I created the main add and edit page I've got a couple of BeforeAdd and BeforeEdit events. When I created the new page it kept those as events even though they were irrelevant to any field on the new page. Removing the events has solved the problem.
Thanks