G
Guest
I have an Access 2003 db. It is a CRM and contains customer, product, and
order information for a small business. The company is getting a new online
shopping system and we need to revamp the product categories so products are
easy to find on the web and in the printed catalog.
I have a list of categories (contains 8 items) and a list of subcategories
(contains 60 items and each is associated to one of the main categories).
Each product can be associated to more than one category/subcategory. I need
to build the product entry/modification form so that the CRM user can select
the appropriate categories for each product..
As far as I know I am unable to use the combo box or list box to show the
options because the subcategory list is dynamic based on the category and if
more than one category is selected it is not clear how I would display
multiple subcatory lists in a list box or combo box. Also the customer wants
to be see all the categories/subcategories at a glance and not have them
hidden under a pull down or scrollable list.
I ended up creating a tabbed page interface for the product and made a page
with the list of all the subcategories under category headings with
checkboxes next to each subcategory. I know I need to write code to evaluate
each checkbox to see if it is checked (uggh). I was planning to make the
checkbox name contain the storage id of each subcategory (ex. chk_34). Then I
thought i would try to use a "for each" loop and "case" option (for each ctl
in frm.controls with ctl select case .controltype) to determine if it is
checked and I need to store the product no and subcategory id in the product
category table.
I haven't actually coded it yet so I don't know if this will work or if
there is a better way to do this. I figure this will required lots of coding
and I should ask if I am headed down the right path before I spend too many
more hours on it. Thanks so much.
order information for a small business. The company is getting a new online
shopping system and we need to revamp the product categories so products are
easy to find on the web and in the printed catalog.
I have a list of categories (contains 8 items) and a list of subcategories
(contains 60 items and each is associated to one of the main categories).
Each product can be associated to more than one category/subcategory. I need
to build the product entry/modification form so that the CRM user can select
the appropriate categories for each product..
As far as I know I am unable to use the combo box or list box to show the
options because the subcategory list is dynamic based on the category and if
more than one category is selected it is not clear how I would display
multiple subcatory lists in a list box or combo box. Also the customer wants
to be see all the categories/subcategories at a glance and not have them
hidden under a pull down or scrollable list.
I ended up creating a tabbed page interface for the product and made a page
with the list of all the subcategories under category headings with
checkboxes next to each subcategory. I know I need to write code to evaluate
each checkbox to see if it is checked (uggh). I was planning to make the
checkbox name contain the storage id of each subcategory (ex. chk_34). Then I
thought i would try to use a "for each" loop and "case" option (for each ctl
in frm.controls with ctl select case .controltype) to determine if it is
checked and I need to store the product no and subcategory id in the product
category table.
I haven't actually coded it yet so I don't know if this will work or if
there is a better way to do this. I figure this will required lots of coding
and I should ask if I am headed down the right path before I spend too many
more hours on it. Thanks so much.