F
FrankSpokane
I have a combo box on a form that looksup to a query - (foodsort) - which
sorts a table (foods) based on their name and caloric content, and then puts
these values in another table (food eaten).
My problem is that I can enter two foods that have the same caloric value in
the Foods table, but on the form when the combobox does the lookup to the
query, it always pulls in the first food that has that caloric value. I am
allowing for duplicates in the caloric values in each table.
Structures:
Food table:
Id autonumber
Food text
Calories Number dupes allowed
Food eaten table:
Id number
Food text
Calories number dupes allowed
The combobox is on a Form for the Food eaten table. It works fine for foods
with a unique caloric value , just not for dupes
Not sure where I am going wrong on this and all ideas appreciated.
I can upload the mdb as it is real small.
This is a running database I created years ago to track my jogging, and now
I want to be able to track my caloric consumption for each day too.
sorts a table (foods) based on their name and caloric content, and then puts
these values in another table (food eaten).
My problem is that I can enter two foods that have the same caloric value in
the Foods table, but on the form when the combobox does the lookup to the
query, it always pulls in the first food that has that caloric value. I am
allowing for duplicates in the caloric values in each table.
Structures:
Food table:
Id autonumber
Food text
Calories Number dupes allowed
Food eaten table:
Id number
Food text
Calories number dupes allowed
The combobox is on a Form for the Food eaten table. It works fine for foods
with a unique caloric value , just not for dupes
Not sure where I am going wrong on this and all ideas appreciated.
I can upload the mdb as it is real small.
This is a running database I created years ago to track my jogging, and now
I want to be able to track my caloric consumption for each day too.