Results 1 to 7 of 7
  1. #1
    llitvin is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2013
    Posts
    6

    Report selecting data from multiple unlinked forms by data range

    I have a database where data is entered in multiple forms. Each form record has a date and time entered with it. The records do not have any relationships to other records on different forms.



    I would like to generate a report that selects data records from different, unassociated tables that are within a specified date range. I would like to be able to enter the start date/time and end date/time and have all the records in that range populate the report.

    Any suggestions would be appreciated.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Maybe have a subreport for each table. Each subreport would have parameterized query as RecordSource. The query would reference controls on form for the criteria input.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    llitvin is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2013
    Posts
    6
    Thank you for the idea of the subreport. I would like to use up to 10 sub reports on 1 report. It seems that it is asking me for query parameters for each of the subreports, even if the parameters have the same name. Is there any way to input the query parameter value once and have it be read by all the individual queries?

    Thank you for your help.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Have the criteria input on a form. Have each query refer to the same form controls.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    llitvin is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2013
    Posts
    6
    June7,
    I created a form with with the inputs for start and stop dates. They are ShiftReportStartTime and ShiftReportStopTime. I am not sure how to reference them in the criteria parameters of the query. In the criteria of the query I typed:
    Between [ShiftReportStartTime] And [ShiftReportStopTime]
    I entered values in the table for both fields, but they are not referenced when I run the query. It is asking me to enter the values manually.

    Once again, I appreciate the help.

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Need to include Forms!yourformname as prefix in the reference.

    Between Forms!yourformname.ShiftReportStartTime And Forms!yourformname.ShiftReportStopTime
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    llitvin is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2013
    Posts
    6
    I figured it out. Thank you for the help.

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

Similar Threads

  1. Print Data Range on Report
    By Dale S in forum Reports
    Replies: 5
    Last Post: 05-30-2012, 08:33 AM
  2. Data range for Web Forms
    By need_help12 in forum Forms
    Replies: 7
    Last Post: 05-11-2012, 04:20 PM
  3. Multiple Forms carrying forward data
    By adams.bria in forum Forms
    Replies: 5
    Last Post: 04-04-2012, 10:50 PM
  4. Selecting multiple values to be used in a report.
    By mnsemple83 in forum Reports
    Replies: 1
    Last Post: 08-12-2011, 05:10 PM
  5. Replies: 0
    Last Post: 01-03-2011, 03:38 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