PC Review


Reply
Thread Tools Rate Thread

ADO Data Type Mismatch error

 
 
Lucky
Guest
Posts: n/a
 
      14th 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). 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

'Get SQL
strSQL = "INSERT INTO .

'Append data to table
cnn.Execute strSQL

Set cnn = Nothing

Any idea where I am going wrong?

Thank you for your help.

Lucky

 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      16th Aug 2003
What's the exact code for

strSQL = "INSERT INTO .

It's possible there's something wrong with your SQL statement.


--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele


"Lucky" <(E-Mail Removed)> wrote in message
news:01a001c3627a$7f8e24e0$(E-Mail Removed)...
> 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). 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
>
> 'Get SQL
> strSQL = "INSERT INTO .
>
> 'Append data to table
> cnn.Execute strSQL
>
> Set cnn = Nothing
>
> Any idea where I am going wrong?
>
> Thank you for your help.
>
> 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
Data Type mismatch error B. Meincke Microsoft Access Form Coding 3 14th Feb 2009 11:47 PM
Error data type mismatch Eric Microsoft Access 2 15th Aug 2006 08:51 AM
Data Type Mismatch Error =?Utf-8?B?ag==?= Microsoft Access 2 19th Jun 2006 11:51 PM
data-type mismatch...Why am I getting this error??? Angi Microsoft Access Form Coding 2 5th May 2005 02:41 PM
Data Type Mismatch Error Steve Crowhurst Microsoft Access VBA Modules 1 3rd Nov 2003 03:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:27 AM.