I have the following situation:
Main Form = tblCustomer with pkey as customerID
Subform1 = tbleReservationType has a lookup field with Lunch or Dinner value list and has ReservationTypeID as pkey
Subform2 = tblNumberofReservations holds details of Customer reservation and has NumberofReservationID as pkey ReservationTypeID as a fkey customerID as fkey.
I have been able to link subform2 to subform1 using the ReservationTypeID but I am not able to link Subform1 to Main Form because they don't have a common field. I also want to be able to synchronize the data so that if I select Joe Blow as customer and select Dinner as his reservationtype, I should only see the details for Joe Blow's dinner reservations and if I select lunch, then I should only see his lunch reservations. Please help me do this without a whole lot of code because I a really novice at VBA.
Your help is greatly appreciated!
![[sunshine] [sunshine] [sunshine]](/data/assets/smilies/sunshine.gif)
Main Form = tblCustomer with pkey as customerID
Subform1 = tbleReservationType has a lookup field with Lunch or Dinner value list and has ReservationTypeID as pkey
Subform2 = tblNumberofReservations holds details of Customer reservation and has NumberofReservationID as pkey ReservationTypeID as a fkey customerID as fkey.
I have been able to link subform2 to subform1 using the ReservationTypeID but I am not able to link Subform1 to Main Form because they don't have a common field. I also want to be able to synchronize the data so that if I select Joe Blow as customer and select Dinner as his reservationtype, I should only see the details for Joe Blow's dinner reservations and if I select lunch, then I should only see his lunch reservations. Please help me do this without a whole lot of code because I a really novice at VBA.
Your help is greatly appreciated!
![[sunshine] [sunshine] [sunshine]](/data/assets/smilies/sunshine.gif)