Hiya,
Sounds like you need to define a global variable, i.e. a variable that will hold a single value for the lifetime of the application and which can be changed by any form within the application.
Once the application is closed, then the value will be lost.
I don't know the type of data to be held, so we won't define the variables' type....
Open up your application module, within it type:
global MyVar
You can now refer to MyVar as if it was a normal field on any form, except that you never need to qualify it.
E.G. MyVar = 10 or MyForm!MyField = MyVar etc.
Because we didn't declare the type of data that MyVar will hold, it will hold any type of data: strings, numbers anything.
If you know the type of data beforehand, then define it as that type.....
Global MyVar as String or
Global MyVar as Integer or
Global MyVar as Byte etc. etc.
Obviously you can name the variable anything that you wish - it doesn't have to be 'MyVar' !!!
Hope this helps,
Darrylle
"Never argue with an idiot, he'll bring you down to his level - then beat you with experience."