It sounds like you want to create Customer Groups, and then make each customer a member of a group, and then find a product list and pricing based on group membership.
This is not a coding issue, but a table design and normalization issue.
You would have to create:
tblGroup
GroupID - PK
Group Description
tblCustomer
PK
LName
FName
GroupID - FK
tblProduct
ProductID
Product Description
Price
tblProd_Group
ID
ProductID - FK
GroupID - FK
GroupPrice
Once you create something like this, the code is a little easier.
Does this look like it will work for you? Questions, Comments?
HTH to get started. Code later.
mmcdonal
|