PC Review


Reply
Thread Tools Rate Thread

Data Type Mismatch error during DAO to ADO Conversion

 
 
Lucky
Guest
Posts: n/a
 
      15th Aug 2003
I need to convert DAO QueryDef to ADO. I have been able
to convert the majority of them except for one where the
original data source is Pass-Through query (via ODBC from
Oracle db). When this update is run in DAO, it performs
flawlessly. However, in ADO I get the following error
message: "Data Type Mismatch in Criteria Expression").

I use the following code:

Set cnn = CurrentProject.Connection

'SQL statement
strSQL = "NSERT INTO tbl ." & _
"SELECT qry ." & _
"FROM qry ." & _
"WHERE .;"

'Append data to table
cnn.Execute strSQL

Set cnn = Nothing

When I use Select query with the same exact data (and not
Pass-Through query) this update runs great. Any idea what
I need to do to get this update running with ADO?

Thank you for any suggestions.

Lucky

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: "Type Mismatch" error when trying to pass DAO.Tabledef to object f Jim Burke in Novi Microsoft Access VBA Modules 1 16th Sep 2008 04:29 AM
Re: "Type Mismatch" error when trying to pass DAO.Tabledef to object function Douglas J. Steele Microsoft Access VBA Modules 7 15th Sep 2008 09:17 PM
Type mismatch error when setting DAO property - references anddisambiguation okay otterbyte Microsoft Access VBA Modules 2 12th Sep 2008 08:59 PM
Access 2003 mismatch type 13 error already loaded DAO library TimkenSteve Microsoft Access Getting Started 2 19th Sep 2006 01:17 PM
Type mismatch error (different than previous type mismatch?) Roberta Microsoft Access VBA Modules 3 9th Jan 2004 07:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:16 AM.