Solved

How do you pass a Form variable to a Public Module

Posted on 2012-03-22
1
160 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

Independent Software Vendors: 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

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

687 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