Results 1 to 3 of 3
  1. #1
    Stika is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2012
    Posts
    18

    Search Form Based on Combobox and Date range

    Hi,



    Im not sure if im googling the right stuff but I Have a form....It has a combobox where I select a Transport Carrier. I then enter the date range in 2 seperate fields and need to create a search button...but I want to bring up all the records by that Transport carrier field and inbetween the date range I have input and want it to spit out to a report.

    Is this possible or Im just not googling right?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Several ways to accomplish. Do you use VBA or macros?

    For one method, review: http://datapigtechnologies.com/flash...mtoreport.html

    Another is WHERE CONDITION argument, something like:
    DoCmd.OpenReport "reportname", , , "[Transport Carrier]='" & Me.comboCarrier & "' AND DateField BETWEEN #" & Me.boxStart & "# AND #" & Me.boxEnd & "#"

    Is Transport Carrier field a text or number? If it is number, remove the apostrophe delimiters.
    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
    Stika is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2012
    Posts
    18
    Hi,

    Thanks for getting back to me...I found a solution this morning...im pretty sure its the same thing you have...Thanks for you help

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

Similar Threads

  1. Search Date Range with Null Sources
    By MintChipMadness in forum Forms
    Replies: 8
    Last Post: 08-23-2012, 08:56 AM
  2. Replies: 4
    Last Post: 05-26-2012, 09:29 AM
  3. Message Box Based on Date Range
    By MSAccessOldTimer in forum Programming
    Replies: 4
    Last Post: 05-14-2012, 04:25 PM
  4. joins based on date range
    By broecher in forum Database Design
    Replies: 4
    Last Post: 11-04-2011, 06:32 PM
  5. Search form with a date range
    By mantro174 in forum Forms
    Replies: 1
    Last Post: 02-11-2009, 10:45 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