Solved

Difference between currentproject.accessconnection and currentproject.connection

Posted on 2013-01-19
3
522 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 119

Accepted Solution

by:
Rey Obrero 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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 Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
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…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

867 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

19 Experts available now in Live!

Get 1:1 Help Now