Results 1 to 6 of 6
  1. #1
    taimysho0 is offline Competent Performer
    Windows XP Access 2000
    Join Date
    Nov 2011
    Posts
    286

    Help with Label in Report Header

    Hello, i have a report that is based off a query. This query is composed of one other query (lets call this query 1 and the query of the report query 2). The criteria for query 1 is Between [DateTo] and [DateFrom]. There is no criteria for Query 2.


    I want the header of my report to display whatever the date range the user inputs when the criteria pops up asking for a date range. In this format:


    ex: January 1, 2012 - January 31, 2012



    Thanks!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    User input in response to query parameter prompts in criteria row are not available for reference. Have a form where user inputs dates in textboxes. Query refers to the textboxes for criteria input. A textbox in report header can have ControlSource that refers to the form controls. Requires form to remain open when report runs.
    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
    taimysho0 is offline Competent Performer
    Windows XP Access 2000
    Join Date
    Nov 2011
    Posts
    286
    is tehre a way to do this without a form? an alternate solution? thanks

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    Anything else requires more code. I never use query parameter prompts, I use forms. Can't validate user entry in query prompts. They can enter anything and the report will still execute, even if the entry was bad. Just means lots of frustration for users.
    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.

  5. #5
    taimysho0 is offline Competent Performer
    Windows XP Access 2000
    Join Date
    Nov 2011
    Posts
    286
    i tried referring to the variable in the criteria, and put that on my report and it works.


    ex:

    between (date from) and (date to)


    and on report i put textboxes with these two variables and it shows up

    thanks for help though

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    Not understanding. You used a form to enter criteria and report refers to form?
    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. How do I add a field to report header
    By jscriptor09 in forum Reports
    Replies: 3
    Last Post: 12-06-2011, 05:29 AM
  2. Label report
    By Gavroche in forum Reports
    Replies: 1
    Last Post: 10-18-2011, 08:44 PM
  3. Report Header
    By kwooten in forum Reports
    Replies: 2
    Last Post: 08-03-2011, 11:31 AM
  4. report header
    By nashr1928 in forum Reports
    Replies: 2
    Last Post: 07-13-2010, 12:34 PM
  5. Report Header on Each Page
    By nweird in forum Reports
    Replies: 1
    Last Post: 07-24-2009, 07:57 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