Hi All. I'm new here, so I hope you don't mind if I barge right in.
I've searched but can't really find what I'm after.
Access 2007.
I'm making a simple order database. I have two primary tables. For simplicity sake, here are the main fields
Table 1 - Orders
>Order # (Primary Key)
>Supplier
>Ordered By
>Order Date
Table 2 - Order Line Items
>Order #
>Item Number
>Manufacturer
>Model #
>Description
>Quantity
>Cost each
The tables are linked in a one to many relationship on the Order # field.
I have a form that displays data from the Orders table with a subform (displayed as a datasheet) that displays data from Order Line Items.
I want to be able to apply a filter by form on either the main form or subform. So far, here's what happens:
Filter By Form on main form works fine.
Filter By Form on subform does not work. It appears as though the subform is filtered independent of the main form. Is there a way around this?
For instance I have two suppliers: ABC and XYZ
I have 5 orders from each supplier. From supplier XYZ I ordered an item with the description "Washer". I want to be able to filter by form, on the subform, for "Washer". As of now, if I happen to have supplier XYZ displayed on the main form, this filter works. If ABC is displayed, the filter doesn't work.
Since these are linked tables, it seems like this should work, but it doesn't.
By the way, I'm using the built in Filter By Form function. Do I have to build my own filter by form to make this work? If so, is there a relatively easy way to build a filter by form? The only way I've ever figured out to build a filter by form is to use a rather lengthy query containing all fields to be filtered with criteria for each field to cover null or not null values. Also, I've never built this type of filter by form for linked tables, so I don't even know if it would work.