Results 1 to 3 of 3
  1. #1
    craig1988 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2014
    Posts
    82

    Where criteria using "OR"

    Count = DCount("Reference", "tblLog", "IncidentReportStatus = 'Requested' OR 'Returned'")

    Hi

    How do I use "OR" in the criteria above. I presume one or more of my "'s are incorrect.



    Thanks

  2. #2
    cyanidem's Avatar
    cyanidem is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2015
    Location
    Consett, UK
    Posts
    270
    Try:
    Count = DCount("Reference", "tblLog", "IncidentReportStatus = 'Requested' OR
    IncidentReportStatus ='Returned'")

  3. #3
    craig1988 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2014
    Posts
    82
    YEP!!!

    Thats the one

    Count = DCount("Reference", "tblLog", "[IncidentReportStatus] = 'Requested' OR [IncidentReportStatus] ='Returned'")

    I also wrapped the Field in [] to be sure.

    Thanks

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

Similar Threads

  1. Replies: 1
    Last Post: 09-07-2015, 08:00 AM
  2. Replies: 4
    Last Post: 08-26-2014, 05:52 PM
  3. Replies: 13
    Last Post: 06-23-2014, 01:07 PM
  4. Replies: 3
    Last Post: 12-17-2013, 08:27 AM
  5. Passing criteria "NULL" or "IS NOT NULL" to a query
    By SgtSaunders69 in forum Forms
    Replies: 1
    Last Post: 12-24-2011, 02: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