Results 1 to 2 of 2
  1. #1
    tbmac61 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    1

    Print Date Criteria in Chart

    Hi all,
    I created a query and chart for a date range in my database.
    My query asks for input from the user to provide a date range.
    I need to print that date range, the query is based on, under the heading for the chart.
    Is there an easy way to make this happen?
    Thanks!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    You are using query parameter input prompts? I never use them.

    Options:

    1. Construct fields with expressions like:
    StartDate: [Enter start date]
    EndDate: [Enter end date]
    Then criteria under the native date field would be:
    BETWEEN [Enter start date] And [Enter end date]
    User will be prompted once for start date and once for end date. The start and end dates will show on each row. These constructed fields can be ControlSource in textboxes in report header.

    2. Instead of parameter prompt for input, have user input criteria in textboxes on form. The query would refer to the form textboxes as input parameters and report textboxes ControlSource can reference the form textboxes for the input date.

    3. Use the OpenArgs argument of DoCmd.OpenReport to pass values input on form to report and textbox ControlSource expressions can extract values from the OpenArgs string.
    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.

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

Similar Threads

  1. Make query print YES or NO for certain Criteria
    By taimysho0 in forum Queries
    Replies: 3
    Last Post: 12-12-2011, 01:33 PM
  2. Chart legend appears as date
    By Vronsky in forum Programming
    Replies: 0
    Last Post: 06-09-2011, 05:20 AM
  3. Replies: 0
    Last Post: 03-26-2011, 09:59 AM
  4. Replies: 2
    Last Post: 07-12-2010, 05:39 AM
  5. Print custom date for data validation
    By TheFuzzball in forum Database Design
    Replies: 2
    Last Post: 10-26-2009, 06:48 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