?
Solved

How do you pass a Form variable to a Public Module

Posted on 2012-03-22
1
Medium Priority
?
162 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 2000 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

649 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