Form/Query Question

D

Dirk_Bob

I have created a form with a text box to enter a zip code. Once the user
enters the zip, I want to look up that number in a query.

How do I link the number entered in the text box to the zip field on the
query?
 
K

KARL DEWEY

Put this as criteria in the query.
[Forms]![YourFormName]![YourTextBoxName]
You must have the form open and enter data before running the query.
 
D

Dirk_Bob

Thanks Karl When I do this a get a pop up box asking for the information
again, how can I eliminate the popup box?
--
Dirk


KARL DEWEY said:
Put this as criteria in the query.
[Forms]![YourFormName]![YourTextBoxName]
You must have the form open and enter data before running the query.
--
KARL DEWEY
Build a little - Test a little


Dirk_Bob said:
I have created a form with a text box to enter a zip code. Once the user
enters the zip, I want to look up that number in a query.

How do I link the number entered in the text box to the zip field on the
query?
 
D

Douglas J. Steele

As Karl said, the form must be open when the query runs. If it is, make sure
that you typed the names of the form and text box correctly.

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


Dirk_Bob said:
Thanks Karl When I do this a get a pop up box asking for the information
again, how can I eliminate the popup box?
--
Dirk


KARL DEWEY said:
Put this as criteria in the query.
[Forms]![YourFormName]![YourTextBoxName]
You must have the form open and enter data before running the query.
--
KARL DEWEY
Build a little - Test a little


Dirk_Bob said:
I have created a form with a text box to enter a zip code. Once the
user
enters the zip, I want to look up that number in a query.

How do I link the number entered in the text box to the zip field on
the
query?
 
Top