Ringhal
08-29-2014, 06:46 AM
I am having a problem setting up a query. I have two tables and one form. The tables are linked in a one-to-one relationship by primary key where no duplicates are allowed. For this example, there is a People table and a Food table. The People table has names of people as field names. These fields are set as check boxes (Yes/No data type). The primary in both table lists foods and for this example we'll say that the check boxes show that the food is the person's favorite food.
The form has a combo box and a text field. The text box field has information pulled from somewhere else and for this example, it's manually typed in. The combo box is why I am asking for help. The Row Source for the Combo Box is where I want to build a query that will show the person named in the textbox their favorite foods.
This can be done using VBA, SQL or simply a query, whichever way is needed. I tried to add an expression to the query where it would only show the Person, but it didn't work out.
12199 Why is an mdb file invalid?
The form has a combo box and a text field. The text box field has information pulled from somewhere else and for this example, it's manually typed in. The combo box is why I am asking for help. The Row Source for the Combo Box is where I want to build a query that will show the person named in the textbox their favorite foods.
This can be done using VBA, SQL or simply a query, whichever way is needed. I tried to add an expression to the query where it would only show the Person, but it didn't work out.
12199 Why is an mdb file invalid?