Results 1 to 2 of 2
  1. #1
    snowygirl1 is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Oct 2016
    Posts
    10

    Export data from table to Excel filtered by a field

    I have a few tables set up with information relating to people enrolled in a course.
    I have created a query to pull the relevant information from various tables into one query which i then need to be able to export to Excel but need to be able to only export based on a specific course intake. E.g. there are 4 or 5 intakes per year, I need to be able to export just the information for Jan 2016 intake, as an example.



    I was thinking would be useful to be have a form with a drop down menu, populated by the intake date in one of the tables, and I could just select the intake I wish to view and maybe run a query for just that intake, but I'm not sure how to go about doing that.

    Can anyone give me some guidance on how I'd do this?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,523
    Make the form, the combo activates the filter on a query to be exported.
    the query;qsExportData
    select * from table where [field]=forms!myForm!cboBox

    Then export: docmd.transferspreadsheet .....qsExportData....

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

Similar Threads

  1. Can't export data in a filtered subform only
    By mayestom in forum Macros
    Replies: 30
    Last Post: 08-11-2014, 09:23 AM
  2. Export Filtered Query to Excel Using Combo Box on Form
    By besuchanko in forum Import/Export Data
    Replies: 0
    Last Post: 02-07-2013, 10:10 PM
  3. Export Filtered ListBox output to a Excel Sheet
    By gokul1242 in forum Programming
    Replies: 4
    Last Post: 10-11-2012, 02:19 PM
  4. trying to export table data tpo Excel
    By itm in forum Access
    Replies: 2
    Last Post: 01-30-2012, 10:44 AM
  5. Export Filtered Results to Excel Tabs
    By opod in forum Programming
    Replies: 1
    Last Post: 08-03-2011, 01:33 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