Solved

How to access anothter form's data?

Posted on 1998-10-28
2
156 Views
Last Modified: 2010-04-30
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
Comment
Question by:andersy
2 Comments
 
LVL 14

Accepted Solution

by:
waty earned 20 total points
ID: 1442053
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
 

Author Comment

by:andersy
ID: 1442054
It works!

Thanks!
0

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question