Results 1 to 5 of 5
  1. #1
    dominover is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2016
    Posts
    11

    Why connect to an access database?

    Why do I need to connect to an Access database in my application? I can't seem to find a reason to.


    If I can run expressions and queries without establishing a database connection then why do it?

    Is it to update records only? I'm not sure.

  2. #2
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,936
    think you need to clarify the background to your question - why do you think it is not necessary - provide an example of what your mean

  3. #3
    dominover is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2016
    Posts
    11
    Well this part is the crux of my question.
    If I can run expressions and queries without establishing a database connection then why do it?

    I know it's a technical question and I can understand if nobody understands it so please see the link below.

    http://www.w3schools.com/asp/ado_ref_connection.asp

    Is this the only reason to establish a connection to a database?
    The ADO Connection Object is used to create an open connection to a data source. Through this connection, you can access and manipulate a database.
    If you want to access a database multiple times, you should establish a connection using the Connection object. You can also make a connection to a database by passing a connection string via a Command or Recordset object. However, this type of connection is only good for one specific, single query.

  4. #4
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,936
    If I can run expressions and queries without establishing a database connection then why do it?
    you need a connection for data - ADO is just one way of doing it. If you are accessing tables within your db for your expressions and queries, you don't need ADO, instead you are using DAO. ADO can be used on internal tables if you are looking for specific functionality such as disconnected recordsets (something you can't do in DAO)

  5. #5
    dominover is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2016
    Posts
    11
    Ok. Thanks very much. I have been reading allot about ADO and DAO which has been the source of my question.
    Thanks for the help.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Connect access from workstation to sql server database
    By danieltaylor in forum SQL Server
    Replies: 1
    Last Post: 11-26-2012, 03:11 PM
  2. Replies: 1
    Last Post: 07-16-2011, 01:40 PM
  3. Replies: 5
    Last Post: 03-29-2009, 07:20 AM
  4. Replies: 0
    Last Post: 03-09-2009, 12:20 PM
  5. Replies: 3
    Last Post: 04-05-2006, 04:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums