Results 1 to 5 of 5
  1. #1
    Polarbilly is offline Novice
    Windows Vista Access 2007
    Join Date
    Jun 2011
    Posts
    13

    Filter problem on a repot

    I've created a basic report which contains a field created by using the expression


    =[FabricBatch] & [Job Sequence]

    I've also tried using a combi box to do the same job, but in both cases whilst the data appears and is correct - I cannot get the "FILTER" to recognises it
    (thats the "funnel" symbol on the "sort and filter" menu.) It seems so simple, but to a beginner.....

    thanks in anticipation of your help

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    I just tested this idea and apparently can't use the Access sort/filter tools on fields constructed by expression. If you need to filter a report, send filter criteria when the report is opened. There are several ways to do this, depending on the structure of project and your knowledge.

    How are you opening the report - manually from the Navigation pane or with code (VBA or macro)?
    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
    Polarbilly is offline Novice
    Windows Vista Access 2007
    Join Date
    Jun 2011
    Posts
    13

    Filter problems on report

    Thanks for the response...My knowledge is fairly limited and I don't think that I will be into VBA for some time. Have a basic knowledge of Macros.

    I'm opening the report from a Switchboard. It would be preferable if the criteria could be selected from a list/drop down menu....

    thanks for your help

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    Then code in the button click event to open report would reference the combobox. I use only VBA but macro can do this:

    DoCmd.OpenReport "report name", , , "fieldname='" & Me.combobox name "'"

    This assumes field is text datatype, if it is number then remove the apostrophe delimiters, if it is date then use # instead.
    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
    Polarbilly is offline Novice
    Windows Vista Access 2007
    Join Date
    Jun 2011
    Posts
    13
    Quote Originally Posted by June7 View Post
    Then code in the button click event to open report would reference the combobox. I use only VBA but macro can do this:

    DoCmd.OpenReport "report name", , , "fieldname='" & Me.combobox name "'"

    This assumes field is text datatype, if it is number then remove the apostrophe delimiters, if it is date then use # instead.

    Sorry to take so long to reply, but been away - works very well

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

Similar Threads

  1. Filter problem
    By Javad in forum Access
    Replies: 0
    Last Post: 01-22-2011, 01:48 PM
  2. Me.Filter statement problem.
    By BobG in forum Programming
    Replies: 2
    Last Post: 11-19-2010, 10:25 AM
  3. Multiple filter problem.
    By ducecoop in forum Access
    Replies: 2
    Last Post: 10-28-2010, 11:14 AM
  4. Report Filter Problem
    By Imgsolutions in forum Access
    Replies: 2
    Last Post: 07-07-2010, 02:32 PM
  5. How do you filter repot?
    By archie in forum Reports
    Replies: 9
    Last Post: 08-26-2009, 10:50 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