I have 2 form in my VB Project. One is frmSales and other is frmNew.
Now in frmSales form, I have declared one variable as
public cmdUpdate as Integer.
I want to check the value of variable (cmdUpdate) in frmNew form.
I have written following code in frmNew form
Dim frmobj as New frmSales
if frmSales.cmdUpd ate = 1
code
else if
But above code does not work. I am not able to access the cmdUpdate variable.
Can anyone tell me what is wrong in my code.
Thanks
Now in frmSales form, I have declared one variable as
public cmdUpdate as Integer.
I want to check the value of variable (cmdUpdate) in frmNew form.
I have written following code in frmNew form
Dim frmobj as New frmSales
if frmSales.cmdUpd ate = 1
code
else if
But above code does not work. I am not able to access the cmdUpdate variable.
Can anyone tell me what is wrong in my code.
Thanks
Comment