Results 1 to 2 of 2
  1. #1
    dkstech is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2011
    Location
    Cleveland, OH
    Posts
    1

    Date Range Parameter help!?!?

    I am a newbie to access and ran across a problem. I have a reporting db that pulls info from another db, most of the functionality works but there are some qwerks and this is one of them.



    I start by clicking a button to run a report. The report asks me for a manager code, Start Date and End Date then generates the report seemingly fine. It is generally a 150 page report. The issue is printing it or going between pages, every page it prints it asks for the Start Date and End Date again and again. Sames goes if you just click to the next page. I narrowed it down to the sub report, then the query that actually asks for the parameters

    If it uses this in the criteria, letting the user choose the dates:

    Code:
    Between [Start Date] And [End Date]
    No matter what date I enter it has the crazy problem of asking for every page. If I change the it to a specific date range.

    Code:
    Between #10/1/2010# And #10/31/2010#
    Which is exactly the same as what I put in the prompt it works fine..... Does not ask me any questions, just runs the report AOK and I can flip through the pages and print them all if i feel like.

    So what is going on with this?

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    why that query is firing with each page - I'm not sure. But in any case it is - so the fix is to put those 2 dates into an open form in two separate unbound text boxes. stylistically you can decide how best to do that in terms of the user experience.

    then modify that query so instead of a prompt - it is calling the value(s) from that open form's controls.

    hope this helps.

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

Similar Threads

  1. Complicated Query needs some date range help
    By KevinMCB in forum Queries
    Replies: 1
    Last Post: 01-11-2011, 12:25 PM
  2. Date Range Failure
    By goodguy in forum Queries
    Replies: 4
    Last Post: 12-30-2010, 10:22 AM
  3. Date range help!!
    By bananatodd in forum Access
    Replies: 26
    Last Post: 10-18-2010, 01:57 PM
  4. Define a date range for a report - Help
    By Optimus_1 in forum Access
    Replies: 4
    Last Post: 06-02-2010, 04:50 AM
  5. Sum of Values over date range
    By bosnian in forum Queries
    Replies: 1
    Last Post: 01-12-2010, 03:41 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