Results 1 to 5 of 5
  1. #1
    ramireztm is offline Novice
    Windows 10 Access 2016
    Join Date
    May 2016
    Posts
    3

    Question Creating a Report Containing Multiple Forms within a Date Range

    I have created a database for a random work project with multiple tables and a respective form for each. I have a main menu and I would like to make a very unique report by clicking a command button. When clicking the command button, the user will need to enter a date range (e.g. 3/12/16 to 4/30/16). After the date range is entered, a report would be a consolidation generated with every table (in form view) in the database that is within the date range. I am really new to Microsoft Access since I just learned it a week ago. Can anyone help?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,521
    in the form , say, frmReports
    put the 2 text boxes and name them txtStartDate, and txtEndDate
    in your query reference the boxes:

    select * from table where [dateOfEvent] between forms!frmReports!txtStartDate and forms!frmReports!txtEndDate

  3. #3
    ramireztm is offline Novice
    Windows 10 Access 2016
    Join Date
    May 2016
    Posts
    3
    Since I am kind of slow at this, I don't really understand how to do what you are saying. I need a little more of a step by step process.

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,521
    you have to know some basic access fundamentals....
    create a form , name it frmReports
    put the 2 text boxes and name them txtStartDate, and txtEndDate
    build a query, that pulls the data using the dates on the form

    query.sql
    select * from table where [dateOfEvent] between forms!frmReports!txtStartDate and forms!frmReports!txtEndDate

  5. #5
    ramireztm is offline Novice
    Windows 10 Access 2016
    Join Date
    May 2016
    Posts
    3
    Thank you! This was very helpful

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

Similar Threads

  1. Replies: 17
    Last Post: 04-18-2014, 01:35 PM
  2. Replies: 6
    Last Post: 09-24-2013, 06:02 PM
  3. Creating a Date Range Form
    By daniejm in forum Forms
    Replies: 1
    Last Post: 12-13-2012, 08:51 AM
  4. Date Range Report with Multiple Date Fields
    By StevenCV in forum Reports
    Replies: 13
    Last Post: 02-29-2012, 08:29 AM
  5. Replies: 3
    Last Post: 09-29-2009, 07:08 AM

Tags for this Thread

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