+ Reply to Thread
Results 1 to 2 of 2

Exporting data from Access To Excel (6 Months + Only)

  1. #1
    Forum Contributor
    Join Date
    03-31-2009
    Location
    Dartford
    MS-Off Ver
    Excel 2007
    Posts
    237

    Exporting data from Access To Excel (6 Months + Only)

    Hi Guys,

    I have a database with nearly 50,000 records in including sub forms that are connected to the main form, what I want to be able to do is, have a button on my switchboard that when clicked with export any records over 6 months into an Excel Spread Sheet. Is this possible at all and if so, How do I do it.

    I only have basic knowlege of access so simple explanation is needed, sorry xx

    I found this code, can anyone tell me if it is the correct one to use, I also need to know how to create the query for the button, I can do basic queries but I need the button to on export anything that is 6 months +.

    Please Login or Register  to view this content.
    I would appricate someones help, you may need to be patient with me lol

    Shaxx
    xx

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,904

    Re: Exporting data from Access To Excel (6 Months + Only)

    I would use the following procedure.

    Create your query using the following format. Substitute your field names and table names accordingly.
    Please Login or Register  to view this content.
    Then in the on click event for your command button use the following code
    Please Login or Register  to view this content.
    This will export your query to your local desktop as an excel spreadsheet in 2007 format

    Alan
    Last edited by alansidman; 01-30-2012 at 08:55 AM.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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