Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Unexpected Query Result Working with Dates in a Microsoft Access 2013 Web App

Posted on 2014-11-14
4
Medium Priority
?
215 Views
Last Modified: 2014-11-14
I am working on a scheduling app that should exclude a player from the schedule if (s)he will not be available (due to vacation, training, or some other issue) on the date the schedule is being created.  This seems to work fine except in one case where the start date of the player's unavailability begins in one year and ends in the next.  Here's an example:

Start Date: 12/22/2014
End Date:  01/05/2015
Schedule Date: 12/29/2014

Obviously the Schedule Date falls between the Start Date and the End Date however this player continues to show up on the schedule that I create for 12/29/2014.

I'm attaching a copy of the record that should be affected by the query as well as the query itself. Please let me know if you need additional information.  Thanks in advance for your help.
Capture1.PNG
Capture2.PNG
0
Comment
Question by:penlandt
[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
  • 2
4 Comments
 
LVL 51

Accepted Solution

by:
Gustav Brock earned 2000 total points
ID: 40443686
Here you state End Date:  01/05/2015
However, the screenshot states End Date:  01/05/2014
That may explain what you see.

/gustav
0
 
LVL 1

Author Closing Comment

by:penlandt
ID: 40443699
Oh. My. God.  So sorry to bother you with that.  I clearly need a vacation. ;-)
0
 
LVL 51

Expert Comment

by:Gustav Brock
ID: 40443717
The second pair of eyes, you know.

/gustav
0
 
LVL 1

Author Comment

by:penlandt
ID: 40443724
Indeed I do.  Thank you again.
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

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

If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
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.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

719 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