Results 1 to 6 of 6
  1. #1
    zzzjoshzzz is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2014
    Posts
    8

    Question Allow user to create custom, filtered reports

    I have a normalized database with (let's say) the following tables:



    tblProjects
    tblStaff
    tblProjectPhase
    tblOffice


    I need a way to allow the end user to be able to create custom reports that show only projects in certain phases (let's say planning and construction) AND that are from certain Offices (let's say Office 1 and 3 but not 2) AND that were started between a certain date range.


    What I'm envisioning is a checkbox-style form that has a 'create report' button at the bottom.

    Your help is MUCH APPRECIATED. =)

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Build filter criteria based on selections on form and use the constructed criteria string in WHERE CONDITION argument of OpenReport method.

    Review http://www.allenbrowne.com/ser-62.html
    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
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    In the report form, you would have combo boxes or text boxes.
    the report would either use the combo in the qquery
    select * from table where [dept] = forms!frmReport!cboDept.
    OR

    If you have many boxes and SOME are selected, then you must determine what got picked then filter in the openReport clause.

  4. #4
    zzzjoshzzz is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2014
    Posts
    8
    Quote Originally Posted by ranman256 View Post
    In the report form, you would have combo boxes or text boxes.
    the report would either use the combo in the qquery
    select * from table where [dept] = forms!frmReport!cboDept.
    OR

    If you have many boxes and SOME are selected, then you must determine what got picked then filter in the openReport clause.
    Yes, I'm trying to do the second thing you mentioned. Do you know how to do this?

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Did you review link in post 2?
    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.

  6. #6
    zzzjoshzzz is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2014
    Posts
    8
    Quote Originally Posted by June7 View Post
    Build filter criteria based on selections on form and use the constructed criteria string in WHERE CONDITION argument of OpenReport method.

    Review http://www.allenbrowne.com/ser-62.html
    Thanks! I will try this today or this weekend and get back to you. Great link though. =)

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

Similar Threads

  1. Replies: 3
    Last Post: 09-22-2011, 03:35 PM
  2. Replies: 1
    Last Post: 06-20-2011, 03:56 PM
  3. Reports filtered by Month
    By Douglasrac in forum Access
    Replies: 3
    Last Post: 01-27-2011, 05:01 PM
  4. Can't keep dates filtered on my reports!
    By Mr. Coffee in forum Queries
    Replies: 5
    Last Post: 12-02-2010, 11:27 AM
  5. Replies: 1
    Last Post: 10-24-2010, 04:01 PM

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