A
asgard
I have a table of Products with X items, and a table of SalesReps with Y
items. Both lists are dynamic -- let's say that we regularly add products
and hire sales reps (and let's assume that we do not remove them, so data
integrity is maintained). I would like to have a dynamic data entry form
that captures unit sales for each sales rep for each product (time period is
irrelevant). So, I would like to have a single table-shaped form that as the
row headers has the X product names, as the column headers has the Y rep
names, and within the table X*Y text boxes where I can enter the units sold
by each rep. If tomorrow I add a product and bring up the form again, I
would get a table of (X+1)*Y cells and would be able to override the old
values and new ones (for product X+1).
I would structure the tables in the following way:
tblProduct
ProductId (PK)
ProductName
tblSalesRep
SalesRepId (PK)
SalesRepName
tblSalesData
ProductId (PK)
SalesRepId (PK)
SalesAmount
My questions are: i) is this doable in Access?, and ii) if so, is there a
sample database that demonstrates this functionality?, or if not, is there an
elegant workaround that would help me accomplish the same thing?
Many thanks for your help!
items. Both lists are dynamic -- let's say that we regularly add products
and hire sales reps (and let's assume that we do not remove them, so data
integrity is maintained). I would like to have a dynamic data entry form
that captures unit sales for each sales rep for each product (time period is
irrelevant). So, I would like to have a single table-shaped form that as the
row headers has the X product names, as the column headers has the Y rep
names, and within the table X*Y text boxes where I can enter the units sold
by each rep. If tomorrow I add a product and bring up the form again, I
would get a table of (X+1)*Y cells and would be able to override the old
values and new ones (for product X+1).
I would structure the tables in the following way:
tblProduct
ProductId (PK)
ProductName
tblSalesRep
SalesRepId (PK)
SalesRepName
tblSalesData
ProductId (PK)
SalesRepId (PK)
SalesAmount
My questions are: i) is this doable in Access?, and ii) if so, is there a
sample database that demonstrates this functionality?, or if not, is there an
elegant workaround that would help me accomplish the same thing?
Many thanks for your help!