?
Solved

Access one Form Element through another Form using VBA

Posted on 2011-02-18
1
Medium Priority
?
537 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 22

Accepted Solution

by:
rspahitz earned 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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.
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

800 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