?
Solved

Difference between currentproject.accessconnection and currentproject.connection

Posted on 2013-01-19
3
Medium Priority
?
591 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 2000 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

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

752 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