473,405 Members | 2,187 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Call Database in ADO For Table Linking

Hi all:

I am using Access 2002, and of course, when I copied the solution from
the Solutions.mdb to link tables at startup, I got an area using the
code supplied.

I have since tried a variety of other calls, to no avail.
Below is sample code.

Could someone provide:
1) Correct code
2) Type library I need to be connected to.

I would like to use ADO rather than DAO.

Thanks!

amy
===
Dim db As ado.Database
Dim rst As ado.Recordset

Set rst = CurrentDb

' Open linked table to see if connection information is correct.
On Error Resume Next
Set rst = dbs.OpenRecordset("Fees_be")
Nov 13 '05 #1
6 1646
Database is a DAO object.
CurrentDb is supplied by DAO.
TableDef is a DAO object, and so on.

Why would you want to use ADO and the associated problems and
inconsistencies of the ADOX library versions, when DAO is the native Access
library?

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"amywolfie" <am*******@verizon.net> wrote in message
news:33**************************@posting.google.c om...

I am using Access 2002, and of course, when I copied the solution from
the Solutions.mdb to link tables at startup, I got an area using the
code supplied.

I have since tried a variety of other calls, to no avail.
Below is sample code.

Could someone provide:
1) Correct code
2) Type library I need to be connected to.

I would like to use ADO rather than DAO.

Thanks!

amy
===
Dim db As ado.Database
Dim rst As ado.Recordset

Set rst = CurrentDb

' Open linked table to see if connection information is correct.
On Error Resume Next
Set rst = dbs.OpenRecordset("Fees_be")

Nov 13 '05 #2
I was thinking ahead in case I have to upsize the backend to SQL.

But in order to use the DAO command, which Type Library do I need to activiate?

Thanks!
amy
===
"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message news:<40**********************@per-qv1-newsreader-01.iinet.net.au>...
Database is a DAO object.
CurrentDb is supplied by DAO.
TableDef is a DAO object, and so on.

Why would you want to use ADO and the associated problems and
inconsistencies of the ADOX library versions, when DAO is the native Access
library?

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"amywolfie" <am*******@verizon.net> wrote in message
news:33**************************@posting.google.c om...

I am using Access 2002, and of course, when I copied the solution from
the Solutions.mdb to link tables at startup, I got an area using the
code supplied.

I have since tried a variety of other calls, to no avail.
Below is sample code.

Could someone provide:
1) Correct code
2) Type library I need to be connected to.

I would like to use ADO rather than DAO.

Thanks!

amy
===
Dim db As ado.Database
Dim rst As ado.Recordset

Set rst = CurrentDb

' Open linked table to see if connection information is correct.
On Error Resume Next
Set rst = dbs.OpenRecordset("Fees_be")

Nov 13 '05 #3
"amywolfie" <am*******@verizon.net> wrote in message
news:33**************************@posting.google.c om...
I was thinking ahead in case I have to upsize the backend to SQL.


FWIW I've been using SQL Server back ends for years and have yet to write my
first line of ADO code.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #4
The library is:
Microsoft DA0 3.6

More information about references:
http://allenbrowne.com/ser-38.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"amywolfie" <am*******@verizon.net> wrote in message
news:33**************************@posting.google.c om...
I was thinking ahead in case I have to upsize the backend to SQL.

But in order to use the DAO command, which Type Library do I need to activiate?
Thanks!
amy
===

Nov 13 '05 #5
am*******@verizon.net (amywolfie) wrote in message news:<33**************************@posting.google. com>...
I was thinking ahead in case I have to upsize the backend to SQL.

But in order to use the DAO command, which Type Library do I need to activiate?

Thanks!
amy
===


Microsoft DAO 3.X Object Library (If you're using 2000 or later, it's version 3.6).
Nov 13 '05 #6
Thanks everyone for your help. I opted for ADO since I was involved
in upsizing a very large Access database with reams of DAO code to
SQL, and the developer ended up rewriting that code in ADO.

From what you're saying, that wasn't entirely necessary.

Thanks!
amy
===
pi********@hotmail.com (Pieter Linden) wrote in message news:<bf**************************@posting.google. com>...
am*******@verizon.net (amywolfie) wrote in message news:<33**************************@posting.google. com>...
I was thinking ahead in case I have to upsize the backend to SQL.

But in order to use the DAO command, which Type Library do I need to activiate?

Thanks!
amy
===


Microsoft DAO 3.X Object Library (If you're using 2000 or later, it's version 3.6).

Nov 13 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Shyam Singh | last post by:
I have two database Student and Course both have a relation on it. Student ID is the primary key for Student Table and Course ID is the primary key for course table. As per my logic, one student...
2
by: Wilder | last post by:
I'm trying to update a field in one table with the minimum values of the field in another table. The two tables are linked via a common field. I want to populate a date field in one table with...
0
by: gasturbtec | last post by:
please help im new at access programming and i just got this project dropped in my lap because the old programmer quit. i've been doing ok so far but now i need to add code to an existing database...
3
by: Ken Davis via AccessMonster.com | last post by:
I get this error message when trying to compact and repair my database: (Could not find field "Description"). When I clicked on Help, the error message number comes up as (Error 3799) It's the...
1
by: gopinathanr | last post by:
I am having a VB 6.0 program where I am using an MS Access database. This database has some tables that have been created by linking to MySql database using the MySQL ODBC 3.51 Driver. When I try...
3
by: vonclausowitz | last post by:
Hi All, I was thinking of creating a table in my database to index all words in the database. That way I can quickly search for one or more words and the index table will return the words and...
8
by: rdemyan via AccessMonster.com | last post by:
I've converted my application from A2K format to A2003 format. I tried to follow Allen Browne's protocol in getting my app into A2003 (although I was unable to find informtion on the conversion...
2
by: Peter Sutton | last post by:
I want to create a new table in a linked database and then link to it from the front end. The name of the table is tblUserLookups and the external (backend) database is ADAS_Data.mdb. The...
7
by: coolsti | last post by:
I have the task to set up an application at work,using MS Access as a front end to a MySQL database. This will be done using an appropriate ODBC driver, and linking the MySQL database to Access. ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.