Results 1 to 5 of 5
  1. #1
    mike02 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    245

    Parameters for Dates

    Hey,



    I have a date field and It list the dates in mm/dd/yyyy form. I have created a search from which displays the data in subforms in the Detail section. Search Criteria is in the form Header section. The search criteria includes start date, end date, and Name. The date will search on the name but ignores the search of star.end date. I have a calandar popup to select the date. Which then fills in the unbound text boxs with the date. I have tried the following parameters:

    Between [Start Date:] AND [End Date:] Works but i have to manually insert it. The goal is to manipulate this expression to have the combo boxes insert the start and end dates in.

    Tried this.

    Between [Start Date:[Forms]![Search].[Form]![txtstart]] AND [End Date:[Forms]![Search].[Form]![txtend]]

    That didnt work.

    Does anyone have any ideas?

    Thanks in advancE!

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Try

    Between [Forms]![Search]![txtstart] AND [Forms]![Search]![txtend]
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    mike02 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    245
    Your a hero. THANKS! I have been trying for a while lol!!!!

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    No problem! Here's a good link on the syntax:

    Forms Refer to Form and Subform properties and controls
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    mike02 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    245
    thanks for the link. appreciate it!

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

Similar Threads

  1. Multiple Min/Max dates by sequential dates
    By chucku in forum Access
    Replies: 2
    Last Post: 04-05-2012, 07:43 AM
  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: 10
    Last Post: 11-16-2011, 10:58 AM
  4. Mixed dates - show only complete dates?
    By weeblesue in forum Queries
    Replies: 3
    Last Post: 10-27-2010, 02:15 PM
  5. Replies: 0
    Last Post: 07-27-2009, 07:51 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