Results 1 to 3 of 3
  1. #1
    rplum is offline Novice
    Windows 8 Access 2013 32bit
    Join Date
    Apr 2016
    Posts
    10

    Microsft Access Query Help

    Hey guys!,

    I need a little help and was hoping someone could assist. We are tracking our employees attendance at work, and I built an access database that pulls from our time keeping system however on some instances its pulling the wrong data because a different record is present besides there "Regular Hours". Basically what I need to do is for May 4th If Regular Hours is the PAYCODENAME then it needs to disregard any other coding. In this case Unpaid ESA - Family Emergency should not show when I run this query since Regular Hours is present for the same date. I have tried a few IIf statement but I can't seem to get it to work.




    Click image for larger version. 

Name:	2.png 
Views:	11 
Size:	16.0 KB 
ID:	25057

    Let me know if you need anything else!


    Thanks again

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    Its 2 queries, regular:
    Q1: select * from table where instr([paycodename],"Regular")>0
    and
    Q2: select * from table where instr([paycodename],"Overtime")>0

    you can then pull them both together in a union query if needed.

  3. #3
    rplum is offline Novice
    Windows 8 Access 2013 32bit
    Join Date
    Apr 2016
    Posts
    10
    That didn't work for me. When I ran those two queries I just got numbers.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 05-13-2016, 01:15 AM
  2. Replies: 1
    Last Post: 12-14-2015, 04:26 PM
  3. Replies: 2
    Last Post: 10-07-2015, 12:28 PM
  4. Replies: 3
    Last Post: 04-24-2012, 08:32 AM
  5. Replies: 34
    Last Post: 02-15-2012, 05:17 AM

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