Filtering forms in MS Access

Posted by terence6 on Stack Overflow See other posts from Stack Overflow or by terence6
Published on 2010-06-09T19:38:52Z Indexed on 2010/06/09 19:42 UTC
Read the original article Hit count: 249

Filed under:
|
|

I have a simple form showing products from my database. Each product has a foreign key to manufacturer_id . I would like to filter my form by manufacturer_id instead of default product_id. How I can do that ? I know I must create a macro. Also I've already created a query, that takes manufacturer's name as argument and returns manufacturer_id. So basically it should work in this way, that when I press 'Filter' button on my form, it runs macro that opens my query asking for manufacturer's name. And when the name is returned the whole form is filtered (so somewhere there should be comparison between manufacturer_id in product and that returned from query, but I can't manage to do that). I'm using access 2007.

Model:
alt text

© Stack Overflow or respective owner

Related posts about ms-access

Related posts about forms