S
Scott
Greetings. I have a dilemma that I have been scratching my head on for a
while now. I have a db keeping track of guests, stays and purchases at my
B&B. There are 3 main tables of data, no. 1 of guest data (name, address,
etc.) no. 2 of stay info (room, rate, date of stay, length of stay, etc.)
and no. 3 of purchase info (item purchased [granola, coffee, etc.], cost,
quantity). There are also several tables that hold data like a list of
rooms, list of items to be purchased, type of guest, type of referral.
They are used to populate combo boxes.
I have 1 main form that I use to enter data to the 1st main table. I have
a subform used to enter data about a guest's stay. The subform also has a
series of calculated fields to display the cost of the room and tax and
total on the main form. Right now this all works fine. I have reports
that I can get all this info out of with no problem.
The problem comes in when I try to create a second subform to enter data
about purchases that guests make such as bags of coffee or bags of granola
or other value added items beside rooms. I keep track of this seperately
so I can know what guests have purchased in the past. I need to have the
subform link to the 1st main table, but also to the 2nd main table of
stays. I need to know what giuest purchased what during which particular
stay. I have some guests who stayed many times. I want to know if they
bought coffee the last time they were here or granola last year. I also
need to be able to calculate the purchases for each stay like I do for
stays so I can charge for them.
The form is a tabbed form with the guest info form on the first tab and the
stay info form on the second tab. I want to put the guest purchase form on
the second form so I know what stay I am entering purchase data for.
Anyone have any thoughts on this? I appreciate any help you can provide.
Best regards,
Scott B
while now. I have a db keeping track of guests, stays and purchases at my
B&B. There are 3 main tables of data, no. 1 of guest data (name, address,
etc.) no. 2 of stay info (room, rate, date of stay, length of stay, etc.)
and no. 3 of purchase info (item purchased [granola, coffee, etc.], cost,
quantity). There are also several tables that hold data like a list of
rooms, list of items to be purchased, type of guest, type of referral.
They are used to populate combo boxes.
I have 1 main form that I use to enter data to the 1st main table. I have
a subform used to enter data about a guest's stay. The subform also has a
series of calculated fields to display the cost of the room and tax and
total on the main form. Right now this all works fine. I have reports
that I can get all this info out of with no problem.
The problem comes in when I try to create a second subform to enter data
about purchases that guests make such as bags of coffee or bags of granola
or other value added items beside rooms. I keep track of this seperately
so I can know what guests have purchased in the past. I need to have the
subform link to the 1st main table, but also to the 2nd main table of
stays. I need to know what giuest purchased what during which particular
stay. I have some guests who stayed many times. I want to know if they
bought coffee the last time they were here or granola last year. I also
need to be able to calculate the purchases for each stay like I do for
stays so I can charge for them.
The form is a tabbed form with the guest info form on the first tab and the
stay info form on the second tab. I want to put the guest purchase form on
the second form so I know what stay I am entering purchase data for.
Anyone have any thoughts on this? I appreciate any help you can provide.
Best regards,
Scott B