Solved

Text Value from Time

Posted on 2016-11-08
3
42 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 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

809 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