Results 1 to 2 of 2
  1. #1
    dylcon is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Ann Arbor
    Posts
    130

    Filling in Report header with a form value


    I currently have a form that will simply display the values from a query, which was called by a form. What I want is for the header (a text box) in the report to have the value that the user selects from the form that calls the report. Also, when the form calls the report, it only prints it off. I would like to know how the form can just display the report instead.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,600
    A textbox in header can refer to the control on the form or the textbox value can be passed to report in OpenArgs then textbox on report can extract from OpenArgs.

    DoCmd.OpenReport "reportname", acViewPreview, , , , Me.formtextboxname

    Expression in report textbox:

    =Forms!formname!textboxname

    or

    =[OpenArgs]
    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. Dynamic Report Header
    By brad in forum Reports
    Replies: 4
    Last Post: 04-15-2013, 02:30 PM
  2. Replies: 2
    Last Post: 06-15-2012, 07:32 AM
  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. Filling in blank textbox on a report.
    By cowboy in forum Reports
    Replies: 3
    Last Post: 04-16-2010, 02:50 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