+ Reply to Thread
Results 1 to 5 of 5

importing from access

  1. #1
    Registered User
    Join Date
    07-31-2007
    Location
    Newcastle Upon Tyne, UK
    MS-Off Ver
    2003
    Posts
    20

    importing from access

    Hi, i currently have a spreadsheet that auto imports upon opening and every 5 minutes thereafter from a access query. i set it up simply via going through Data/import external data etc.

    At the begginning of each new month the query in the access database will be changed to show activity in the new month. I am wishing to create a new spreadsheet each month to import the new months data from the same query in access. the problem is that if i go to open a previous months spreadsheet - it will also auto update with the new months data. I do not wish for this to happen as i wish to keep a archive. i cannot seem to find anything allowing me to disconnect the external link and to keep the data that i have in the spreadsheet.

    Any solutions?

    Thanks in advance.

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

    Idea

    Why don't you filter the month column in the Access Query to show a specific month then have 12 tabs each with data-imports to the month specific query?

    so in effect have 12 querys:

    Jan
    Feb
    Mar
    Apr
    may
    Jun
    Jul
    Aug
    Sep
    Oct
    Nov
    Dec

    Then the same name for the tabs.
    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
    07-31-2007
    Location
    Newcastle Upon Tyne, UK
    MS-Off Ver
    2003
    Posts
    20
    Unfortunately, that would mean i need 12 seperate queries in access. I only wish to have 1.

    Idea: could i possibly define a date parameter in the spreadsheet that gets passed onto the access query date field before before importing takes place?
    In otherwards, each spreadsheet indicates the month it represents, which gets passed onto the query and inturn the query sends back that particular months data?

    I know that last idea is rather more complicated as initially i was looking for something which would allow me to simply disconnect the external link.

  4. #4
    Forum Contributor
    Join Date
    05-26-2008
    Posts
    122
    hey.. instead of having 12 queries.. just have the one query but in each months tab in your excel file.. when you are setting up the importing in the query wizard.. just filter the date tab to include only that month ?? shudnt that work !

  5. #5
    Registered User
    Join Date
    07-31-2007
    Location
    Newcastle Upon Tyne, UK
    MS-Off Ver
    2003
    Posts
    20
    thanks for ur idea. the last idea would certainly work, but as the year goes on..the data in the access database is going to get huge. it would mean importing a huge amount of data only to then filter down to a particular month.

    the best thing in theory would be if someway i could get the excel spreadsheet to send over a parameter ( eg: >31/12/07 and <01/02/08) for a particular month to the access query before importing. i have no idea how to do that or if its possible at all. hmm....

+ 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