Results 1 to 6 of 6
  1. #1
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581

    Job listing


    I have a table with a job list. When the job is assigned, I want it to no longer appear in my query. I tried using a date assigned and date vacated. If both dates were null, it would show the listing. If it was assigned, it would not show. If the job was vacated, both dates would be listed and it would show again. The problem comes when I assign it again. It will still show because the new record doesn't appear, but the previous record with both dates would appear. I know there is a better way to to do this. I'm open to suggestions.
    Click image for larger version. 

Name:	query.jpg 
Views:	11 
Size:	90.1 KB 
ID:	32625

  2. #2
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,737
    If assigned, the date field criteria would be "Is Not Null" then you won't get it.
    No idea what this means
    If the job was vacated,
    Guessing that the date would get removed, thus the field should be Null again.
    True is not valid criteria for a date. False/No is always 0. True/Yes is almost always 1.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    Isn't True/Yes in Access -1?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581
    Yes. I'm not sure what I was thinking when I put TRUE. oops. I'm trying to save history on job who holds which job and who vacates (quits, leaves, transfers, etc.) the job. That's the reason I have a table with the job and the start and leave dates. When someone leaves the job, I enter the date they leave. That leaves a date in start and leave date. That opens the job up again. However, when someone is hired and I put in a start date, the query leaves the previous position (same one that was just taken), showing in the query. I realize that I can't get it done like this. I'm trying to find a way to keep track of how many jobs are open and how many are filled.

  5. #5
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581
    I solved my own problem. I'm not sure what's wrong with my mind tonight. I just added up the positions filled and subtracted the number of vacancies. Instant answer. Just a brain fart tonight. Thanks for the thoughts.

  6. #6
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,737
    Quote Originally Posted by June7 View Post
    Isn't True/Yes in Access -1?
    You are correct again. Thanks.

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

Similar Threads

  1. listing bad dates
    By Jen0dorf in forum Access
    Replies: 4
    Last Post: 10-10-2016, 10:22 AM
  2. Email Listing
    By Thompyt in forum Programming
    Replies: 20
    Last Post: 08-06-2015, 02:34 PM
  3. Listing fields
    By geraldk in forum Queries
    Replies: 19
    Last Post: 04-17-2012, 01:49 PM
  4. Replies: 3
    Last Post: 03-23-2012, 06:16 AM
  5. One to Many Listing in Forms
    By zunebuggy in forum Forms
    Replies: 5
    Last Post: 05-11-2010, 08:12 PM

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