Results 1 to 4 of 4
  1. #1
    Crypto is offline Novice
    Windows 7 Access 2007
    Join Date
    Aug 2010
    Posts
    2

    Dynamic Report Caption


    Hey, I have a report that when opened, asks the user to enter a parameter.

    Everything is okay except, I want this parameter to also be the header caption for the report. How can i accomplish this?

    Thanks in advance!

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    does the param come from a query? if so, I don't believe you can use that as a caption too. But, you can make a form that looks like a popup box, throw the input from there to a var and then use that var to change the title of the report before it's opened via a line of code.

    Code:
    reports("report name").caption = "whatever"

  3. #3
    Crypto is offline Novice
    Windows 7 Access 2007
    Join Date
    Aug 2010
    Posts
    2

    Ohhh

    Er, Yes is does come from a query. Fair enough, I will try to do it via form and ask if I need help from there. Thanks!

  4. #4
    Rick West is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jul 2009
    Posts
    90

    Parameters in the report header

    Or you can add a txt box in the header of the report and add a control source - something like this:

    ="Between" & " " & [Enter Start Date] & " " & "Through" & " " & [Enter End Date]

    Only problem is the underlying query asks for start/stop dates and then so does the report. but it works.

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

Similar Threads

  1. Set Label.Caption to field of recordsource
    By ngruson in forum Forms
    Replies: 1
    Last Post: 08-11-2010, 09:59 AM
  2. Replies: 1
    Last Post: 03-24-2010, 02:25 PM
  3. Dynamic Report
    By vCallNSPF in forum Reports
    Replies: 0
    Last Post: 12-08-2009, 04:19 PM
  4. Caption Property & Queries
    By jhrBanker in forum Queries
    Replies: 3
    Last Post: 08-21-2009, 02:28 AM
  5. What I am doing wrong? (caption of report)
    By swampdonkey in forum Reports
    Replies: 0
    Last Post: 12-07-2006, 11:07 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