Is there a way to call or pass a variable to another sub? I'm trying to reterive a variable (or even a field name) in somethign like this:

Code:
Private Sub PrintPageHandler(ByVal sender As Object, ByVal args As Printing.PrintPageEventArgs)

        args.Graphics.DrawString(RS("field1"), New Font("arial", 8), Brushes.Black, 5, 5)

    End Sub
or

Code:
Private Sub PrintPageHandler(ByVal sender As Object, ByVal args As Printing.PrintPageEventArgs)

        args.Graphics.DrawString(variable1, New Font("arial", 8), Brushes.Black, 5, 5)

    End Sub
Where variable1 is from another sub. I keep getting a null exception.