If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > 80040E07 - Data Type Mismatch in Criteria Expression??

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-05-02, 11:14
bjnst6 bjnst6 is offline
Registered User
 
Join Date: Sep 2002
Posts: 13
80040E07 - Data Type Mismatch in Criteria Expression??

hello folks...

i keep getting this error:
80040E07 - Data Type Mismatch in Criteria Expression

when trying to execute the following code:

For i = 0 To (intLength - 1)
thePosition = CInt(arrItems(i))
strSQL = "SELECT ItemPosition FROM tblOrder WHERE ItemPosition = " & thePosition
With rsItems
**.Open strSQL, conPubs, adOpenDynamic, adLockOptimistic
.Fields("ItemPosition") = CInt(i)
.Update
End With
Next

i'm using an access db where ItemPosition is of type "number" (specifically Integer). arrItems is a single dimensional array of strings...and the for loop is working correctly. it gives me the error on the ** line.
any ideas??

thanks!
b
Reply With Quote
  #2 (permalink)  
Old 11-05-02, 12:51
bjnst6 bjnst6 is offline
Registered User
 
Join Date: Sep 2002
Posts: 13
alas...i'm dumb.

i somehow changed the number field in the db to text...thus leading exactly to the behaviour shown. ignorance.

all is now well,
b
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On