Results 1 to 3 of 3
  1. #1
    ericjw316 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2014
    Posts
    1

    Need help in programming in ms access 2007

    I am setting up a system for a friend of mine. I have 2 date fields that have to be selected from and to dates.

    Below that i have a drop down list that needs to check to see if in of the items in the list are already being used between those dates.



    I can upload the access file if that would help you but i am trying to find a way to get this done for her.

    Please let me know if you can help.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    on the form pick the item in the drop box
    also 2 text boxes called
    txtStartDate
    txtEndDate
    (properties, other tab, name)


    the query will then use:

    where
    [code] = forms!frmMyRpt!cboBox
    and
    [TheDate] between forms!frmMyRpt!txtStartDate and forms!frmMyRpt!txtEndDate

  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,652
    This may be appropriate if your items are out for a range of dates rather than a single date.

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

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

Similar Threads

  1. Does anyone else have Access 2007 Programming by Example?
    By IncidentalProgrammer in forum Access
    Replies: 5
    Last Post: 10-07-2014, 01:32 PM
  2. Why MS-Access programming?
    By vincent-leeway in forum Programming
    Replies: 10
    Last Post: 07-29-2013, 06:44 AM
  3. Replies: 2
    Last Post: 06-18-2011, 09:55 AM
  4. New to programming in MS access 2007...
    By DarrenReeder in forum Programming
    Replies: 5
    Last Post: 12-05-2010, 01:03 PM
  5. New to Access programming
    By pushpm in forum Programming
    Replies: 1
    Last Post: 02-20-2009, 03:03 PM

Tags for this Thread

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