Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Type Mismatch

399740Jul 23 2003
I'm new to Oracle and the Oracle OLE DB, but I've been programming in ASP and ADO for quite a while. It seems that whenever I retrieve a recordset from Oracle and use a field, I get a "type mismatch" error. For Example: I have a table that contains a numeric field "Cols". After I have opened the connection and recordset (named ObjRS) this line give me the type mismatch failure:

For i = 1 to ObjRS("Cols")

If I change the line to this:

for i = 1 to CInt(ObjRS("Cols"))

it works perfectly. Converting types in my code would be a HUGE inconvenience, so I must be doing something very simple wrong. Any suggestions?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 20 2003
Added on Jul 23 2003
0 comments
380 views