Solved

Text Value from Time

Posted on 2016-11-08
3
46 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 41879199
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
ID: 41879517
Awesome worked great!!!!
0
 

Author Closing Comment

by:poucedeleon
ID: 41879518
Thank you for your quick response.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

749 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