+ Reply to Thread
Results 1 to 2 of 2

Run an access query from excel

  1. #1
    Registered User
    Join Date
    09-12-2008
    Location
    port washington
    Posts
    1

    Run an access query from excel

    I would like a macro to open a database call oliver, query called test and copy the data into excel. I know I can do this by get data in excel, however, I prefer a macro. Here is all I have so far. Thank You in advance

    Public Sub OpenAccess()
    Dim appAccess As New Access.Application

    Set appAccess = Access.Application
    appAccess.OpenCurrentDatabase "C:\Documents and Settings\2310454\Desktop\OLIVER (V.5.0).mdb"
    appAccess.Visible = True
    End Sub

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573
    Cross posted: http://www.mrexcel.com/forum/showthread.php?t=341401

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. access or Excel
    By mmf in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-16-2008, 09:59 AM
  2. Excel paste link changes after sql query refresh
    By dest in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-08-2008, 03:41 PM
  3. How to setup a new Access path (linked query)
    By bimmer5dude in forum Excel General
    Replies: 0
    Last Post: 06-13-2008, 07:41 AM
  4. Database query - Access necessary?
    By brocklanders in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-27-2007, 02:42 PM
  5. Excel Query Variable
    By Kinesthesia in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-12-2006, 03:25 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1