Results 1 to 2 of 2

Thread: [RESOLVED] Pass variable/values from form to datareport

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2009
    Posts
    64

    Resolved [RESOLVED] Pass variable/values from form to datareport

    What is the best method of passing variable values from a form to a datareport?

    Using a Public strDateRange value on a form, and

    Code:
    DataReport1.Sections("Section4").Controls("lblDateRange").Caption = strDateRange
    for the report, displays a blank label.
    Last edited by Enrique_; Jun 26th, 2009 at 10:19 PM.

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Jun 2009
    Posts
    64

    Re: Pass variable/values from form to datareport

    Resolved
    Placed public variable in a module:
    Code:
    Public strDateRange as String
    ' In print report command
    strDateRange = txtBegindate.Text & " to " & txtEnddate.Text
    Then original datareport section code.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width