this is a simple question I know but I'm having a total brain fart and cant seem to get it im trying to send a currency variable from one form to another and cant remember the syntax ect......please please please help! :(
Printable View
this is a simple question I know but I'm having a total brain fart and cant seem to get it im trying to send a currency variable from one form to another and cant remember the syntax ect......please please please help! :(
that easy here how you do it
first off here whar you do
Module1 Code
Command Button On Form1 CodeCode:'in a Module put this
public MyVar as string
On Text1.text on form2 codeCode:Sub Command1_Click()
MyVar = Text1.text
End Sub
on form2_load()
Code:Sub Form2_Load()
Text1.text = MyVar
End Sub
Ok two possibilities
if the currency field is declared within code, ie not a vb control then declare it as global
Global gcCurrency as Currency
If the currency field is a vb control then
within frm1 do
Load frm2
frm2.CurrencyObject = whatever the name of the control is in frm1
Hope i helps :)