Solved

Difference between currentproject.accessconnection and currentproject.connection

Posted on 2013-01-19
3
511 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
Comment Utility
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 119

Accepted Solution

by:
Rey Obrero earned 500 total points
Comment Utility
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
Comment Utility
The link was very helpful.  Thanks.
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now