Results 1 to 4 of 4
  1. #1
    geremore is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    6

    Input parameter in report header

    Hi,

    Newby question. Got a simple report from a query having a standard parameter (part of criteria). Is it possible to get the text typed in the header of a report? Something like:
    Private Sub ReportHeader_Paint()
    'Add the types text to the report header
    Label123.Caption = ??? Paramater.text ???
    End Sub
    Thanks for any help!

    Geremore

  2. #2
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Use an input form for your parameters and you can then just refer to them using a text box formatted as a label and with the control source of:

    =[Forms]![InputFormNamHere]![ControlWithValueNameHere]

    Using input forms instead of parameter prompts are much better anyway. See here for more about that:
    http://www.tek-tips.com/faqs.cfm?fid=6763

  3. #3
    geremore is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    6
    Thanks Bob,
    One more question: in that case: how to pass the typed value to the query?
    Thanks for yout help!
    Geremore

  4. #4
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    The query's criteria would be

    [Forms]![InputFormNamHere]![ControlWithValueNameHere]

    normally. It really does depend on what the criteria is for (date range, text value, whatever) that determines how you put it in there.

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

Similar Threads

  1. Report Header
    By kwooten in forum Reports
    Replies: 2
    Last Post: 08-03-2011, 11:31 AM
  2. Displaying Parameter Values in Page Header
    By catat in forum Reports
    Replies: 4
    Last Post: 07-16-2010, 08:47 AM
  3. report header
    By nashr1928 in forum Reports
    Replies: 2
    Last Post: 07-13-2010, 12:34 PM
  4. Report Header on Each Page
    By nweird in forum Reports
    Replies: 1
    Last Post: 07-24-2009, 07:57 AM
  5. Display Query Value That Requires Input Parameter
    By Access::Student in forum Access
    Replies: 1
    Last Post: 05-29-2009, 08:43 PM

Tags for this Thread

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