PC Review


Reply
Thread Tools Rate Thread

Can we use ADO programming in Access 97?

 
 
SAG
Guest
Posts: n/a
 
      23rd Sep 2003
One of my clients wants me to write an Access VBA program
for his older equipment. I started a new blank database
and added a connection object and set it up:

Public adoConnection as Connection, Dim rs as recordset
--------------------------------------------------
Public Sub OpenConnection()

'Create the global connection

adoConnection.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\Client\ClientData.mdb;"

End Sub

When I attempted to add:

Set rs = new ADODB.Recordset
it wasn't available in the popup menu. Can I use ADO in
Access 97? Do I need to download a DLL file?

Please advise,

STeve






 
Reply With Quote
 
 
 
 
Jake
Guest
Posts: n/a
 
      23rd Sep 2003
In the VBA editor, click Tools > References, then make
sure that Microsoft ActiveX Data Objects 2.x is checked.

Jake


>-----Original Message-----
>One of my clients wants me to write an Access VBA program
>for his older equipment. I started a new blank database
>and added a connection object and set it up:
>
>Public adoConnection as Connection, Dim rs as recordset
>--------------------------------------------------
>Public Sub OpenConnection()
>
>'Create the global connection
>
>adoConnection.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
>Source=C:\Client\ClientData.mdb;"
>
>End Sub
>
>When I attempted to add:
>
>Set rs = new ADODB.Recordset
>it wasn't available in the popup menu. Can I use ADO in
>Access 97? Do I need to download a DLL file?
>
>Please advise,
>
>STeve
>
>
>
>
>
>
>.
>

 
Reply With Quote
 
Larry Linson
Guest
Posts: n/a
 
      23rd Sep 2003
Why would you want to use ADO with a Jet database? DAO is the native
language of Jet, it is faster than ADO for accessing Jet, and it is more
complete than the combination of ADO and ADOX.

All that said, yes, you can, but it is strictly via VBA and can't be bound
to forms, and Access 97 cannot create an ADP.

Larry Linson
Microsoft Access MVP

"SAG" <(E-Mail Removed)> wrote in message
news:089701c38215$b1be2ae0$(E-Mail Removed)...
> One of my clients wants me to write an Access VBA program
> for his older equipment. I started a new blank database
> and added a connection object and set it up:
>
> Public adoConnection as Connection, Dim rs as recordset
> --------------------------------------------------
> Public Sub OpenConnection()
>
> 'Create the global connection
>
> adoConnection.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
> Source=C:\Client\ClientData.mdb;"
>
> End Sub
>
> When I attempted to add:
>
> Set rs = new ADODB.Recordset
> it wasn't available in the popup menu. Can I use ADO in
> Access 97? Do I need to download a DLL file?
>
> Please advise,
>
> STeve
>
>
>
>
>
>



 
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
ACCESS 2007: programming access to the find screen window genefalk Microsoft Access 0 29th Apr 2009 08:56 PM
Programming against MS Access using C# Ben Microsoft C# .NET 4 15th Nov 2008 06:30 PM
Some Access Database programming, Access 2000 =?Utf-8?B?UHd5ZA==?= Microsoft Access VBA Modules 1 5th Nov 2007 08:41 PM
Programming Access Bob Weiner Microsoft Access 9 20th Feb 2007 11:35 PM
Access Programming Hari Microsoft Access 2 3rd Jan 2005 09:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:39 PM.