Solved

Text Value from Time

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Suggested Solutions

Title # Comments Views Activity
docmd has stopped working 3 44
Access lists formating 8 47
SQL using aggregate function with HAVING / WHERE clause. 8 48
Excel graph in access report 1 32
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

739 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