Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Converting From DAO to ADO

I have a worksheet that obtains its data from an Access database. I am
trying to convert from DAO to ADO but am now getting errors when tring to
open a recordset that worked perfectly well in DAO. I am using
TRANSFORM.....SELECT in the SQL to open the recordset, can I do this using
ADO?
TIA
Mark
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 131
Default Converting From DAO to ADO

ADO just serves to "feed" your SQL commands to your
database, so as long as you have set up the connection and
recordset properly, and written your query properly in
SQL, it should work. But hard to troubleshoot without
knowing the details of your query and the error message
you are getting.

-----Original Message-----
I have a worksheet that obtains its data from an Access

database. I am
trying to convert from DAO to ADO but am now getting

errors when tring to
open a recordset that worked perfectly well in DAO. I am

using
TRANSFORM.....SELECT in the SQL to open the recordset,

can I do this using
ADO?
TIA
Mark
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Converting From DAO to ADO

Thanks for the reply. I had another good look at the SQL and I was using a
reserved word that ADO did not like, but was acceptable to DAO - so problem
resolved by putting square brackets around the reserved word.
Thanks again

Mark

"K Dales" wrote:

ADO just serves to "feed" your SQL commands to your
database, so as long as you have set up the connection and
recordset properly, and written your query properly in
SQL, it should work. But hard to troubleshoot without
knowing the details of your query and the error message
you are getting.

-----Original Message-----
I have a worksheet that obtains its data from an Access

database. I am
trying to convert from DAO to ADO but am now getting

errors when tring to
open a recordset that worked perfectly well in DAO. I am

using
TRANSFORM.....SELECT in the SQL to open the recordset,

can I do this using
ADO?
TIA
Mark
.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting xls to ofx Vance Excel Discussion (Misc queries) 8 June 6th 10 01:25 PM
Converting to PDF Bill Harsh Excel Discussion (Misc queries) 2 November 19th 08 09:00 PM
Converting a date to a text field w/o converting it to a julian da LynnMinn Excel Worksheet Functions 2 March 6th 08 03:43 PM
converting [email protected] Excel Discussion (Misc queries) 2 August 4th 06 11:44 PM
Converting QIF to XLS JVinocur Excel Discussion (Misc queries) 3 March 31st 06 04:09 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"