dlookup

A

at100

I am trying to open up a form based on a table and restricting the records to a field on the main form.

Ex. main form has a drop down combo box based on company names in company table, once you choose the company the company form opens up filtered or restricted to just the companies chosen on the main form drop down..trying to use dlookup thinking thats the way to go using a macro open form.. but having problems..please help
 
K

Ken Snell

Use the WHERE argument of the OpenForm action instead.
[FormFieldToBeFiltered]=[Forms]![FirstFormName]![ComboBoxName]

--

Ken Snell
<MS ACCESS MVP>

at100 said:
I am trying to open up a form based on a table and restricting the records to a field on the main form..

Ex. main form has a drop down combo box based on company names in company
table, once you choose the company the company form opens up filtered or
restricted to just the companies chosen on the main form drop down..trying
to use dlookup thinking thats the way to go using a macro open form.. but
having problems..please help
 

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