Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to access anothter form's data?

Posted on 1998-10-28
2
Medium Priority
?
160 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 60 total points
ID: 1442051
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: 1442052
It works!

Thanks!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

773 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