hello,
i am not sure but i think this is a general question:
I have a Form with a Subform that displays a table/query. The form also contains a ComboBox to apply a filter.
Now it is possible to add a record to the displayed table, or better, the table from which my filter-query receives it's data, but i have to manually set the value for the field that the filter applies to. I want to auto-fill this field with the Value in the CBO elt. but i don't know a comfortable way to do so.
To make it more clear:
tbl1: Typ, Container
tbl2: Container
CBO has tbl2 as Datasource and the "filter" is a query that is altered via VBA code to "SELECT * FROM tbl1 where Container = (CBO.Text)"
There is a shorter table displayed, when the filter is applied, but if i add an element now, it is not assured that "Container" takes the value (CBO.Text). But i want to make that sure, so one doesn't need to add this information and to make sure (after using the filter) one can only add elts. to tbl1 with Container = (CBO.Text)....
.... is my problem clear ?
I'd appreciate any hint.
Kind regards,
...