Results 1 to 4 of 4
  1. #1
    rbpercussion is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2016
    Posts
    3

    Need to return "yes" or "no" for times later than


    The title explains it. I have a table with start times, and I want to build a query where the results of the field return yes or no depending on whether or not the time was later than 8am. I need this to be done with field functions only(i.e.with the builder), no sql, or any formatting to circumvent anything. Please and thank you so much.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    in the query:

    YesNo: IIF(format([field],"hh:nn ampm")>#08:00 am#,"yes","no")

  3. #3
    rbpercussion is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2016
    Posts
    3
    Where do I put that expression, in the field name or in the criteria of the "starttime" field

  4. #4
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    See here for instructions on how to add calculated fields to a query: http://www.fontstuff.com/access/acctut02.htm

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: 1
    Last Post: 09-03-2014, 03:27 AM
  3. Replies: 2
    Last Post: 11-14-2012, 04:47 PM
  4. Replies: 3
    Last Post: 06-29-2012, 08:54 AM
  5. Replies: 11
    Last Post: 03-29-2012, 02:32 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