Solved

How do you pass a Form variable to a Public Module

Posted on 2012-03-22
1
158 Views
Last Modified: 2012-03-22
If I have a Form called frmVolunteer and I have a field call txtFirstName how would I pass this to a Public Module call modLookupVol.  If the form stays open and I go to run module modLookupVol is it just a matter of referencing the variable Form!Forms!frmVolunteer!txtFirstName
0
Comment
Question by:upobDaPlaya
[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 74

Accepted Solution

by:
Jeffrey Coachman earned 500 total points
ID: 37754665
"How do you pass a Form variable to a Public Module"

You cannot pass a form variable to a Public *Module*

You can, however, pass a form variable to a Public *Variable*
Do something like this on a button on the form:
YourPublicVariable=YourFormVariable

If this is not what you wanted, then please take a moment to *First* explain, in detail, what your system is trying to do.

JeffCoachman
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

735 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