Results 1 to 4 of 4
  1. #1
    Lars_a is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2012
    Posts
    2

    Help with dates in Access 2010

    Hi
    I have aproblem I’m sure there is a simple solution to, but I don’t know how to do it.
    I work for a company that manages artists, and I am building an Access 2010 database to help manage this.

    The thing is that I am trying to figure out how I can register an artist with start and end date to their commitment, and to later be able to search specific dates and see who was working.

    My table has: Artist Name, Start date, End date.

    Let’s say Artist A. works from Jan 1st to Jan 10th, and I later want to run a query to see who worked on Jan 7th.

    Can anybody help me with this?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    Something like:

    SELECT * FROM tablename WHERE [enter mm/dd/yyyy] BETWEEN [Start Date] AND [End Date];

    This is an example of query with input parameter prompt. Run the query and an input prompt will pop up. Problem with query input parameter prompts is cannot validate entry.
    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.

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    If you need to check a range, this might help:

    http://www.baldyweb.com/OverLap.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #4
    Lars_a is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2012
    Posts
    2
    Great!! I replaced the promt with a textbox, and put into a form and that did the trick.

    Thank you so much, June7.

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

Similar Threads

  1. Replies: 9
    Last Post: 05-07-2013, 08:37 PM
  2. Query input dates for range of dates in two fields
    By kagoodwin13 in forum Queries
    Replies: 3
    Last Post: 02-13-2012, 04:25 PM
  3. Replies: 1
    Last Post: 01-05-2012, 02:34 PM
  4. Replies: 17
    Last Post: 08-03-2011, 05:19 PM
  5. calculating due dates in access
    By trixxnixon in forum Forms
    Replies: 0
    Last Post: 09-28-2008, 12:35 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