[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 161
  • Last Modified:

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.
0
andersy
Asked:
andersy
1 Solution
 
watyCommented:
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

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now