any variables that I want to be available to ALL forms, I usually put in a module
VB Code:
Public strData As String
Now, I can do the following in frmMain
VB Code:
Private Sub cmdInput_Click() strData = "w00t" frmTwo.Show End Sub
and for frmTwo's Form_Load:
Now, frmTwo's Caption would be equal to a variable that you set in frmMain.VB Code:
Private Sub Form_Load() Me.Caption = strData End Sub




Reply With Quote