Solved

Access one Form Element through another Form using VBA

Posted on 2011-02-18
1
531 Views
Last Modified: 2012-06-27
I have two forms in my VBA application, i want to access one form element values in another form, whats the way to do

Ex:
Login Form- User Name, Password
Customers List Form- Name, User Name, Password

I want to access the 'Login Form' values to be accssed using ' Customers List Form'
0
Comment
Question by:srikanthv2322
1 Comment
 
LVL 22

Accepted Solution

by:
rspahitz earned 500 total points
ID: 34930224
you should be able to reference it directly by the control on the form name.

For example:

Me.Password.Text = frmLogin.Password.Text

Assuming that you are currently in the customer form...aka Me...and frmLogin is the Login Form, and the textbox with the password is called Password
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

810 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