Results 1 to 8 of 8
  1. #1
    RichardAnderson is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2013
    Posts
    74

    How Do I: Filter OUT a record that is being filtered IN

    I have a database with a table called tblBuilds. Two of the fields are "ProduceByDate"(date) "Completed"(date). I also have a form called frmBuilds_Today. This form has the filer "ProduceByDate=Date()". This filter make only the records with today's date in the "ProduceByDate" field get listed. This is great. But my hangup is when I put a date into the "Completed" field. When the date is put in, I want this record to be ignored by the filter. But I do not know anything really about code.



    SO basically, I need the record listed if the "ProduceByDate" is today AND the "Completed" date is empty. Then when a date is added to the Completed field, the record is "filtered out".

    The reason I am using a date field for completed is for other forms and reports. So I can filter records by completed date.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Try

    ProduceByDate=Date() AND Completed Is Null
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    RichardAnderson is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2013
    Posts
    74
    Quote Originally Posted by pbaldy View Post
    Try

    ProduceByDate=Date() AND Completed Is Null
    Thank you so much .. that worked...

    Now for the completed forms... I tried Completed Is >#6/30/2013# and <#8/1/2013# but it gives an error

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Try

    Between #6/30/2013# and #8/1/2013#
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    RichardAnderson is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2013
    Posts
    74
    Quote Originally Posted by pbaldy View Post
    Try

    Between #6/30/2013# and #8/1/2013#
    Yea, that works but only if I create a query with that criteria for the completed field, then base a form off of that query. I was trying to just type the criteria straight into the filter attribute of the form. BUt nothing worked. I tried...

    Completed=Between #6/30/2013# and #8/1/2013#
    Completed Is Between #6/30/2013# and #8/1/2013#

    IF I have to base the form off a query I will.

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    In a filter probably

    Completed Between #6/30/2013# and #8/1/2013#
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  7. #7
    RichardAnderson is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2013
    Posts
    74
    Thank you for you help .... Everything is good now...

  8. #8
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    No problem.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 6
    Last Post: 07-21-2013, 10:43 PM
  2. Replies: 1
    Last Post: 04-28-2013, 09:43 PM
  3. More than One Record on filtered Continuous Form
    By Williams485 in forum Forms
    Replies: 3
    Last Post: 03-13-2013, 04:56 AM
  4. Replies: 14
    Last Post: 05-25-2012, 02:40 AM
  5. Older record disappearing when filtered
    By yohansetiawan in forum Access
    Replies: 4
    Last Post: 03-25-2012, 11:56 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