Results 1 to 3 of 3
  1. #1
    Kipster1203 is offline Advanced Beginner
    Windows XP Access 2000
    Join Date
    May 2010
    Posts
    54

    Question About Criteria

    Hey everyone,



    I was wondering if it was possible to do an if statement inside the criteria?

    right now I have the criteria < [Hold_Date]

    but this criteria must only be applied if Not IsNull([Hold_Date])

    Thanks

  2. #2
    Kipster1203 is offline Advanced Beginner
    Windows XP Access 2000
    Join Date
    May 2010
    Posts
    54
    Here is what I'm trying out

    IIf(IsNull([Hold_Date]),"",<[Hold_Date])

    It's not working of course....

    My reasoning is if Hold_Date is Null, then do nothing, if it's not null, then show documents that have a due date less than hold date (I placed the statement above under the due date column) Any idea on how I can fix this?

  3. #3
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    Can you post the rest of the SQL you're working with? I get the suspicion you're trying to do something but going about it the wrong way. Is your goal to get records that have a due date less than hold date FROM the ones that have a hold date? If so, what I would do is set the criteria to
    WHERE HOLD_DATE Is Not Null AND Due_Date < Hold_Date

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

Similar Threads

  1. Query Criteria
    By Texaine in forum Queries
    Replies: 1
    Last Post: 01-24-2018, 02:36 PM
  2. Want certain criteria to appear on report.
    By kenanselo in forum Reports
    Replies: 4
    Last Post: 01-18-2010, 02:48 PM
  3. check box criteria?
    By kzoll@mindspring.com in forum Queries
    Replies: 3
    Last Post: 11-24-2009, 09:43 AM
  4. Query Criteria Question
    By jrockusa in forum Queries
    Replies: 0
    Last Post: 11-13-2009, 09:16 AM
  5. Criteria Parameter
    By djwasim in forum Reports
    Replies: 1
    Last Post: 07-04-2009, 08:22 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