How to access anothter form's data?

I would like to know how to access the data of other forms.
e.g. Form1 has the variale abc, how can I get the value of variable abc on Form2?

Thanks.
andersyAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
watyConnect With a Mentor Commented:
You have to declare the variables or the procedures as public

Form1 :

Public nAbc     as Integer


Form2 :
   
Private sub toto ()

 Form1.nAbc = 10

End Sub
0
 
andersyAuthor Commented:
It works!

Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.