• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 168
  • 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
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.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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