Hi,
I am trying to develop a DB that tracks the number of packages we receive by type every day. The current database we have has the following fields on a single table:
Date
Location
TypeA_Qty
TypeB_Qty
TypeC_Qty
TypeD_Qty
In the current structure, the person enters the date and location once and then types in amounts based on the Type and whether we received anything of that type on a given day. The data entry happens on a form that contains the same fields as the table.
I would like to normalize the data and create a Locations Table as well as a Types table. This should allow me to quantify totals received (SUM(Qty)) easily versus what I do today (SUM(TypeA_Qty+TypeB_Qty, etc) as well as having control over types and locations without having to add new fields to the database table.
What I am struggling with is creating a form that allows the data entry person to enter the Date and Location once. From there, the person would select a Type and enter a quantity for up to four different Types, if necessary. I've seen sub-forms that provide this functionality but I don't know how to set one up nor do I know how to set up the underlying table (if one is needed) to capture the information.
Any help will be greatly appreciated.
Thanks,
cparaske
I am trying to develop a DB that tracks the number of packages we receive by type every day. The current database we have has the following fields on a single table:
Date
Location
TypeA_Qty
TypeB_Qty
TypeC_Qty
TypeD_Qty
In the current structure, the person enters the date and location once and then types in amounts based on the Type and whether we received anything of that type on a given day. The data entry happens on a form that contains the same fields as the table.
I would like to normalize the data and create a Locations Table as well as a Types table. This should allow me to quantify totals received (SUM(Qty)) easily versus what I do today (SUM(TypeA_Qty+TypeB_Qty, etc) as well as having control over types and locations without having to add new fields to the database table.
What I am struggling with is creating a form that allows the data entry person to enter the Date and Location once. From there, the person would select a Type and enter a quantity for up to four different Types, if necessary. I've seen sub-forms that provide this functionality but I don't know how to set one up nor do I know how to set up the underlying table (if one is needed) to capture the information.
Any help will be greatly appreciated.
Thanks,
cparaske