hello, I am new to programming as a whole and would like some assistance. Apologies in advance if the title is misleading.
I am making a simple program for a restaurant and it has to keep track of reservations for tables. It has a main form that displays the ten tables (which are Labels), and a form for reservations which allows information input(no. of pax, time, name, a checkbox that is checked when reserved) for each table. I bring up the form for reservation when I click on any table and give my input for it to be recorded.
The issue is: after I finished input for table 1 and closed the Reservation form, when I click on table 2 to bring it up, the input from table 1 is displayed there. How do I store and display input for other tables separately without changing the input for Table 1?
if I am not clear enough with my description, below are screenshots of the design.
Reservations Form design
Main Form design
![]()
I am making a simple program for a restaurant and it has to keep track of reservations for tables. It has a main form that displays the ten tables (which are Labels), and a form for reservations which allows information input(no. of pax, time, name, a checkbox that is checked when reserved) for each table. I bring up the form for reservation when I click on any table and give my input for it to be recorded.
The issue is: after I finished input for table 1 and closed the Reservation form, when I click on table 2 to bring it up, the input from table 1 is displayed there. How do I store and display input for other tables separately without changing the input for Table 1?
if I am not clear enough with my description, below are screenshots of the design.
Reservations Form design
Main Form design