So I am working on a report builder for my current database. Basically it will let you choose a variety of things which will generate a SQL WHERE clause to use to modify a base report prior to opening the report.
So I have several things that I will be able to filter by. E.g. Product Type, Customer, Discounts, Margins, etc.
For the Product Type in particular, users of the database will be able to add additional Product Type codes as needed in the future. I would like to be able to create a cascading combo box which shows these - but only shows the available ones.
For instance, let's say there are 5 type codes.
In the first combo box you select TYPE1, then the second combo box should only show TYPE2, 3, 4, 5. Then if you select TYPE3 in the second combo box, the third combo box should only show TYPE2, 4, 5 and so on.
That is the "simple" part. What I'm wondering is if there is a way that I can cause additional combo boxes to be dynamically added to the form? Say that in the future someone adds TYPE6, 7, 8. There were originally only 4 combo boxes. Now three more need to be added. The number of combo boxes would be based on the number of records in a table.
Is this even possible?
I could probably just create 15 or so and just hide all but the needed ones but I'm curious if something like this is possible.
So I have several things that I will be able to filter by. E.g. Product Type, Customer, Discounts, Margins, etc.
For the Product Type in particular, users of the database will be able to add additional Product Type codes as needed in the future. I would like to be able to create a cascading combo box which shows these - but only shows the available ones.
For instance, let's say there are 5 type codes.
In the first combo box you select TYPE1, then the second combo box should only show TYPE2, 3, 4, 5. Then if you select TYPE3 in the second combo box, the third combo box should only show TYPE2, 4, 5 and so on.
That is the "simple" part. What I'm wondering is if there is a way that I can cause additional combo boxes to be dynamically added to the form? Say that in the future someone adds TYPE6, 7, 8. There were originally only 4 combo boxes. Now three more need to be added. The number of combo boxes would be based on the number of records in a table.
Is this even possible?
I could probably just create 15 or so and just hide all but the needed ones but I'm curious if something like this is possible.