Have a need of updating multiple Fields of a Main Form, by using a ListBox and selecting a Record from which the fields to be copied/update the multiple Fields of the Main Form Table.
Thanks for your answer. I assume that my Database is HSQLDB. I came for a need to write an application that will calculate the total of food ingridients for entire day. Such as Carbs, Protein, Sodium, etc. Basucally there are two main tables. Table 1: Food Table: Food Id, Food Product, Weight, Carbs, Protein, etc… Table 2: Consumption for day: Actual Consumption ID,Food Id, Weight, Calories, Carbs, Protein.
For every record I add in Table 2. I need to open a listbox of Table 1 and choos what food I want to select. That record of food of table1 will be added to Table2 including multiple fields of Table1. At the end of the day I want to sumup the total on all fields of Table2.
Main Form will open Table2, With the aid of ListBox and selecting a Record from which the fields to be copied/update the multiple Fields of the Main Form Table2. Please see attchment.
Thanks.FOOD_MENU 7_23_20.odb