Hi All,
I have a db which records incoming specialised waste. The waste arrives from Clients in a variety of containers (11 different sizes of container) There are normally 2 or 3 sizes of containers per consignment but it can on occasions be more. (Herein lies my problem.)
I could create a data entry form with 11 lines (one for each size of container).... No very elegant !
I need to record the Quantity of each size of container and then calculate total weight received in THAT size of container. Each size of container has an allocated weight factor
2 x 4 Litre (2 Kilo)
3 x 7 Litre (3 Kilo)
1 x 11 Litre (5 Kilo)
I have the 11 container sizes in their own table with the necessary associated data.
At the moment, my data entry form has four lines - 1 for each each container size in the consignment. Each line contains QTY Field and a Container Size Field. There is a third field which displays the total weight and I use a DLookup() to extract the correct weight for that size of container from the Containers table and mulitply by the QTY.
The problem is self evident... If I have five different sizes of container I'm 'screwed'. I also have difficulties counting the QTY of each size of container given that there could be any one of 11 different containers on any of the lines.
What IS the best way to construct this database ? Should I resign myself to a separate line for each container size or is there a more elegant way for me to do this, bearing in mind that I must be able to count the number of each size of container received that week.
Any suggestions would be gratefully received.
=Jimbo=