Hello,
I have a booking form with the following fields:
BookingID
ClientID
StaffID
StartTime
EndTime
Date
TotalCost
In this form I have a sub-form with the following fields
AppointmentBookingID
BookingID
AppointmentType
CPH
SessionLength
The problem I am having is that when I want to make a booking how does the information get stored into the database
As I'm selecting an appointment type from a drop down (it's a list of appointments e.g. divorce, litigation), how does this get stored in the tables. Because in the table in which I need it to be stored, it needs to be a number ID because it's a foreign key.
tblBookings has the following fields:
BookingID, ClientID, StaffID, StartTime, EndTime, Date, TotalCost
tblAppointmentBookings has the following fields:
AppointmentBookingID, BookingID, AppointmentTypeID, SessionLength
tblAppointmentTypes has the following fields:
AppointmentTypeID, AppointmentType, CPH
I hope this makes sense to you and that someone can please help me! Thank you very much!
I have a booking form with the following fields:
BookingID
ClientID
StaffID
StartTime
EndTime
Date
TotalCost
In this form I have a sub-form with the following fields
AppointmentBookingID
BookingID
AppointmentType
CPH
SessionLength
The problem I am having is that when I want to make a booking how does the information get stored into the database

tblBookings has the following fields:
BookingID, ClientID, StaffID, StartTime, EndTime, Date, TotalCost
tblAppointmentBookings has the following fields:
AppointmentBookingID, BookingID, AppointmentTypeID, SessionLength
tblAppointmentTypes has the following fields:
AppointmentTypeID, AppointmentType, CPH
I hope this makes sense to you and that someone can please help me! Thank you very much!