Solved

Text Value from Time

Posted on 2016-11-08
3
21 Views
Last Modified: 2016-11-08
I have a query that looks at the time a person arrived. I would like to create a report titled Refusals by shift. I would like the query to group by shift so I tried the following criteria, but I don't get a return. There are three shifts Graves, Days and Swings.
"if" Between #12:01:00 AM# And #7:59:00 AM#="Graves"
0
Comment
Question by:poucedeleon
  • 2
3 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
Comment Utility
try the iif() function

iif([Shift] Between #12:01:00 AM# And #7:59:00 AM#,"Graves", iif([Shift] Between #8:0:00 AM# And #5:00:00 AM#,"Day","Swing"))
0
 

Author Comment

by:poucedeleon
Comment Utility
Awesome worked great!!!!
0
 

Author Closing Comment

by:poucedeleon
Comment Utility
Thank you for your quick response.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now