For Answers, see/post comments

Passing Value to Local Report

In VB 2005, I want to pass a value from Form1 to Report(Form2 Report1.RDLC ). Could some one help me pls.

2 comments:

Anonymous said...

You can use byReference in a function to recieve any changes on the original global variable.

You can pass this value byReference through function.

I think It will help you

Anonymous said...

Here is three cases to solve - Form1 and Form2 should Active

1) Declare variable as Public
Public myValue as Integer = 10

then access it in Form2 like
label1.text = Form1.myValue

2) access Form1 control from Form2
Form1.Controls("ControlID").text

3) pass value to Form2's local function from Form1
Form2.GetValueFrom(myValue)