+ Reply to Thread
Results 1 to 4 of 4

run an Access Query From Excel..

  1. #1
    Registered User
    Join Date
    03-10-2008
    Posts
    2

    run an Access Query From Excel..

    Hi,

    I am terrible at VB....you could say awful!!

    I really want to create a macro in Excel that runs a query I have set up in Access - with the capability to also change the date fields within the Access query itself i.e. the Access query has a date range field that I would like to be able to run directly from Excel.

    What I would then like the macro to do is to run the query and paste all the data into a sheet in Excel, just a blank one.

    Is this possible?

    I have read so many threads on similar things - but just can't get my head around it..... I really should learn to use VB properly!!

    Does anyone have any code that does something similar?

  2. #2
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Thumbs up Here

    I ahev a query i use to pull the data through:

    Please Login or Register  to view this content.
    Make sure you select tools>references in the VBA editor and enable "Microsoft DAO 3.6 Object Library" or it wont work dude

    Just adapt it to suit your needs.

    HTH Dude
    Mr MaGoo
    Magoo.Inc MMVII

    If i've helped please add to my Rep by Clicking on the Blue Scales in the top right hand corner of the post

  3. #3
    Registered User
    Join Date
    03-10-2008
    Posts
    2
    Legend - thankyou for this!!

  4. #4
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Talking Your welcome

    Let me know if it works buddy!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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