fearoffours
Registered User.
- Local time
- Today, 20:33
- Joined
- Apr 10, 2008
- Messages
- 82
Hi there, I feel like this could go in one of several fora here, but think that this one suits best!
I have a database which is essentially a plant catalogue for a garden centre.
One of the functions of the database is to print labels for pots with some detail about the plant, price, care instructions etc.
Individual plant records are held in the tblPlants table. This features a Yes/No field titled 'Print'
Currently I have a form frmPrint which assembles a print queue for the labels. This form has 2 continuous subforms. The first sbfrmPlantSearch lists the results from a search of the database for the plant name. This features a checkbox bound to the aforementioned Print field.
The second subform sbfrmPlantPrint, is bound to a query with the criteria Print=Yes.
Ticking the checkbox next to a record on sbfrmPlantSearch therefore adds that record to sbfrmPlantPrint. The user can amend the price and label quantitiy at this point on the sbfrmPlantSearch. These are then the records that are printed onto the labels.
All this so far works as planned. However we have encountered a situation whereby our plant buyer has now ordered several specimens of the same plant but with different habits and different prices. It is obviously poor relational design for the suer to enter multiple entries in tblPlants for the same type of plant. The user could assemble separate print queues for each type of this plant, but this also seems like a waste of the users time.
The ideal solution as I see it is for there to be a way of adding the plant record to sbfrmPlantPrint multiple times. At this point the user can amend through a combo box the type of habit the plant displays before executing the print command.
My current solution is to remove the Print field from tblPlants. I will instead add a button to the frmPrint which will copy the selected record to a new table - tblPrint. This new table will then include the new 'Habit' field, and sbfrmPlantPrint will be based on a query of this table. (As will the label report). sbfrmPlantPrint will also include an editable combo box for the habit field. There will then have to be a 'clear print list' button on frmPrint which will delete all records from tblPrint.
Is this the best solution? (Having had to write it out carefully in order to explain, I am even more convinced this is the right way to solve this problem!)
I have a database which is essentially a plant catalogue for a garden centre.
One of the functions of the database is to print labels for pots with some detail about the plant, price, care instructions etc.
Individual plant records are held in the tblPlants table. This features a Yes/No field titled 'Print'
Currently I have a form frmPrint which assembles a print queue for the labels. This form has 2 continuous subforms. The first sbfrmPlantSearch lists the results from a search of the database for the plant name. This features a checkbox bound to the aforementioned Print field.
The second subform sbfrmPlantPrint, is bound to a query with the criteria Print=Yes.
Ticking the checkbox next to a record on sbfrmPlantSearch therefore adds that record to sbfrmPlantPrint. The user can amend the price and label quantitiy at this point on the sbfrmPlantSearch. These are then the records that are printed onto the labels.
All this so far works as planned. However we have encountered a situation whereby our plant buyer has now ordered several specimens of the same plant but with different habits and different prices. It is obviously poor relational design for the suer to enter multiple entries in tblPlants for the same type of plant. The user could assemble separate print queues for each type of this plant, but this also seems like a waste of the users time.
The ideal solution as I see it is for there to be a way of adding the plant record to sbfrmPlantPrint multiple times. At this point the user can amend through a combo box the type of habit the plant displays before executing the print command.
My current solution is to remove the Print field from tblPlants. I will instead add a button to the frmPrint which will copy the selected record to a new table - tblPrint. This new table will then include the new 'Habit' field, and sbfrmPlantPrint will be based on a query of this table. (As will the label report). sbfrmPlantPrint will also include an editable combo box for the habit field. There will then have to be a 'clear print list' button on frmPrint which will delete all records from tblPrint.
Is this the best solution? (Having had to write it out carefully in order to explain, I am even more convinced this is the right way to solve this problem!)