Both DTech and nebulus200 are correct either one would work...If you can't find it in your book then here ya go:
Note: I didn't look at your code, so these are just examples
In A Module:
Public gstrGlobal as String
In Form1:
'Set the String to something
gstrGlobal = "Whatever String you want to pass between forms"
In Form2:
'Retrieve the String (We'll make it pop-up in a message box)
msgbox gstrGlobal
Or the other way:
In Form1:
Public strGlobal as string 'Make the string a property of Form1
'Then set the string to something
strGlobal = "Some String"
In Form2:
'Get the strGlobal Property from Form1
msgbox Form1.strGlobal
Enjoy
Simon Templer





Reply With Quote