Running a query based on a textfield-value in a form

  • Thread starter Daan den Hollander via AccessMonster.com
  • Start date
D

Daan den Hollander via AccessMonster.com

Hi,

I have a form with a hyperlink that opens another form to look in a
customer-table....

What I want is that the value of a textfield in the form called 'company'
is being used as the criteria for a query I run to show me companies the
contain what is entered in the textfield.
And after it has run the query it needs to show the results in a form
called Frm_company_search

Please help!

Thanks
 
A

Al Camp

If the field on form Company was [CompanyID], then in the query behind
Frm_company_search, in the CompanyID field, use this criteria...
=Forms!Company!CompanyID

Frm_company_search will open, displaying just the record with that CompanyID
value.
hth
Al Camp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top