Hi
Hope some experts can help me with this simple question.
I have two tables in my database (too many variables to be able to put into one big table): table A and table B (one to one relationship). I created a form with table A as source table, and created a subform on it with Table B as the subform data source. Now I want to filter the forms (both main and sub forms) by a query based on both table A and table B. For example I want to choose records with tableA_var1="eat" and tableB_var1="Lunch", does anyone know how to write the VBA codes for this?
Thanks.
Drinkwater