Combo box is set to receive present date when I open the form which has a subform where is loaded ID_Number, First_Name, Last_Name and Gender from tblFD. After all data has been loaded into subform which is bounded to table Food_Distribution where I have
three check box for each meal Breakfast, Lunch and Dinner. When every person takes his meal I set checkbox to true and data are saved to table Food_Distribution.
On combo box cboDate in the Row source is set:
SELECT Food_Distribution.FD_Date, FORMAT(FD_DATE,"DDMMYYYY") FROM Food_Distribution ORDER BY 2 UNION SELECT DATE() AS FD_DATE, FORMAT(DATE(),"DDMMYYYY") FROM Date_Index ORDER BY 2;
There is Data_Index table where is only one field with value 1 what you can see in the code.