Assassin0UK
Programmer
I have a problem I'm looking to solve, and not sure about the best way to do it.
I have a booking system where the user will be booking in up to 10 lessons per customer each week. I'm trying to come up with a method of making this easy in one step. rather than making the user manually input 10 entries at a time.
I thought of having a form which the user can fill in which will allow for multiple entries. I had the idea of giving one date field for the week commencing.. (validate this by checking its a Monday) Then a series of 10 check boxes, 2 for each day (Morning and Afternoon).
I would also have a combo box giving a drop down list of customer where they can select the customer name.
the form would also have a "Book Lessons" button.
What I want to happen now is for 10 seperate entries to be made in the bookings tables.
The bookings table has fields for
BookingID (Autonumber) PK
CustomerID
LessonDate
SlotID (morning or afternoon)
I'm not sure how to achieve this with access. I was thinking along the lines of a for loop, if the corresponding value is checked save the entry, if not ignore. the date can be incremented via the loop. I've no idea if this can be done in Access or how to achieve it. An alternative would be to create a new table with one record containing all the data and then somehow split it, I was reading a post further down the forum which did something similar using a split function.
Any ideas on the best approach for this problem.
Thanks
I have a booking system where the user will be booking in up to 10 lessons per customer each week. I'm trying to come up with a method of making this easy in one step. rather than making the user manually input 10 entries at a time.
I thought of having a form which the user can fill in which will allow for multiple entries. I had the idea of giving one date field for the week commencing.. (validate this by checking its a Monday) Then a series of 10 check boxes, 2 for each day (Morning and Afternoon).
I would also have a combo box giving a drop down list of customer where they can select the customer name.
the form would also have a "Book Lessons" button.
What I want to happen now is for 10 seperate entries to be made in the bookings tables.
The bookings table has fields for
BookingID (Autonumber) PK
CustomerID
LessonDate
SlotID (morning or afternoon)
I'm not sure how to achieve this with access. I was thinking along the lines of a for loop, if the corresponding value is checked save the entry, if not ignore. the date can be incremented via the loop. I've no idea if this can be done in Access or how to achieve it. An alternative would be to create a new table with one record containing all the data and then somehow split it, I was reading a post further down the forum which did something similar using a split function.
Any ideas on the best approach for this problem.
Thanks