Welcome to WebmasterWorld Guest from 54.146.59.202

Forum Moderators: ocean10000

Message Too Old, No Replies

Provider error '80020005' Type mismatch

Unable to find solution

     
2:07 am on Mar 21, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've been hitting a brick wall for the last 14 hrs or so.

Writing a small script in classic ASP to update 3 numbers in a table in MS Access, something I have done umpteen times, however this time I'm stumped.

Updating 3 number fields in a 4 field record, 2 fields would update as expected if it wasn't for the third field throwing an error : Provider error '80020005' Type mismatch.

When I take the third field out of the update the other two update the numbers perfectly.

I have been looking all over the web and while I found questions about this error they only had some roundabout answers but no definite solution.

If anyone here knows, please share, many thanks in advance.
4:46 am on Mar 21, 2010 (gmt 0)

10+ Year Member



Your SQL string is probably using a wrong type. For instance if you are updating a string field, you need to wrap the value in ticks. And dates need formatting.
9:16 pm on Mar 21, 2010 (gmt 0)

WebmasterWorld Senior Member dstiles is a WebmasterWorld Top Contributor of All Time 5+ Year Member



Another fault I've come across is the field name being a reserved word - eg Type.
9:18 pm on Mar 21, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thank you bmcgee, your suggestion would work fine for a VBscript runtime error but this is a different kind of error.

One way or the other I will crack this problem. :)
9:21 am on Mar 22, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thank you dstiles, that was one of the first things I checked.

In the meantime I've solved it, so it's OK now.

Thanks again.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month