Solved

Difference between currentproject.accessconnection and currentproject.connection

Posted on 2013-01-19
3
547 Views
Last Modified: 2013-01-24
Hello,
I getting up to speed with access 2010.  What is the difference between CurrentProject.AccessConnection and CurrentProject.Connection.  As I understand it, the former returns a reference to the currently active ADO Connection object while the latter returns the currently active ADO Connection object.  When is one used instead of the other?
0
Comment
Question by:chtullu135
3 Comments
 
LVL 77

Expert Comment

by:peter57r
ID: 38796592
I think that if you assign an ado recordset to a form, then one obtained via Connection is not updateable, whereas one obtained via AccessConnection is updateable.  So not a frequently used feature.

(and of course next sql server version is all ODBC; no OLEDB)
0
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 38796602
The CurrentProject.AccessConnection property was introduced in Microsoft Access 2002. Like the CurrentProject.Connection property, it allows developers to share an ADO connection with Microsoft Access. The difference between these properties depends on whether you are using an Access project (that is, a SQL Server database, ADP) or a Jet database (MDB) file in Microsoft Access.

see this link

Difference Between Connection and AccessConnection Properties
http://support.microsoft.com/kb/281784
0
 

Author Closing Comment

by:chtullu135
ID: 38816664
The link was very helpful.  Thanks.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question