Results 1 to 3 of 3
  1. #1
    ismailkhannasar is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    11

    how to filter the Report

    Dear , i have make a report which has 1000 of rows of various projects but i want to get only filter the data (Same as we have in Excel) to provide only those project data which i have selected in list . how to filter the data





    thanks

  2. #2
    qa12dx is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Nov 2012
    Location
    india
    Posts
    112
    on the button u want to use to open the report, use properties-onclick event. u can use macro or vb.

    below is an example of a report i made. it is to show a report for a date range. first i have criteria that askes the user to choose dates if user hasn't before click the button. if date range is selected then open the report for the range;

    If (Eval("[Forms]![SB02_01_PrintOut_menu]![from_dt] Is Null Or [Forms]![SB02_01_PrintOut_menu]![to_dt] Is Null")) Then
    Beep
    MsgBox "Please Select both date fields ", vbInformation, "Guide"
    End If
    If (Eval("[Forms]![SB02_01_PrintOut_menu]![from_dt] Is Null Or [Forms]![SB02_01_PrintOut_menu]![to_dt] Is Null")) Then
    End
    End If
    DoCmd.OpenReport "R010_01_Recieve", acViewReport, "", "[Q010_00_Recieve_ALL_PRINT]![dt] Between [Forms]![SB02_01_PrintOut_menu]![from_dt] And [Forms]![SB02_01_PrintOut_menu]![to_dt]", acNormal

  3. #3
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    one can filter a report 2 ways:

    at the record source level of the report - using a query as the record source - and define the query so it only returns the records that are wanted.

    at the report level - by defining the filter property found in the report's property. it can be manually entered - and permanent for the report - or it can be dynamically entered as part of the opening argument for the report. You will want to research the opening argument information for reports and modify the button or command that opens the report to include the filter info.

    hope this helps.

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

Similar Threads

  1. Report Filter
    By BFlat in forum Access
    Replies: 3
    Last Post: 05-12-2012, 12:51 AM
  2. Help - trying to Filter on report
    By JulieBright in forum Reports
    Replies: 7
    Last Post: 04-20-2012, 02:35 AM
  3. Report Filter
    By SFC in forum Reports
    Replies: 4
    Last Post: 01-11-2012, 04:13 PM
  4. Filter Report
    By BorisGomel in forum Reports
    Replies: 2
    Last Post: 06-09-2011, 03:22 PM
  5. How to Filter Report
    By mikel in forum Reports
    Replies: 2
    Last Post: 08-28-2009, 10:11 AM

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