ganggreen64
MIS
Hello:
I have a main form with a subform dealing with vehicle maintenance. Based on different combinations of 4 values in the main form, I would like to populate the subform with one of over 70 different checklists. The checklist forms never change and are for print purposes only. The 4 values in the main form each have different selections available: StockNumber (can be one of over 200 vehicles), MaintenanceLevel (6 choices), ConditionCode (9 choices), and StorageMode (2 choices).
My question: Would it be possible to auto-populate the sub based on the values resident in the main? I began writing a lengthy If/Then statement on the OnCurrent property and became terribly lost. There are too many combinations and my VBA skills are dangerous at best. Is there a simpler way? Or should I just create a cbo box on the main listing the 70 checklists and let its value dictate which checklist pops up in the sub? The latter would task the Production Controller with populating the correct checklist before the form is printed and assigned to a maintenance crew.
Auto-population of the sub would be the preferred option.
Thanks,
Mark
I have a main form with a subform dealing with vehicle maintenance. Based on different combinations of 4 values in the main form, I would like to populate the subform with one of over 70 different checklists. The checklist forms never change and are for print purposes only. The 4 values in the main form each have different selections available: StockNumber (can be one of over 200 vehicles), MaintenanceLevel (6 choices), ConditionCode (9 choices), and StorageMode (2 choices).
My question: Would it be possible to auto-populate the sub based on the values resident in the main? I began writing a lengthy If/Then statement on the OnCurrent property and became terribly lost. There are too many combinations and my VBA skills are dangerous at best. Is there a simpler way? Or should I just create a cbo box on the main listing the 70 checklists and let its value dictate which checklist pops up in the sub? The latter would task the Production Controller with populating the correct checklist before the form is printed and assigned to a maintenance crew.
Auto-population of the sub would be the preferred option.
Thanks,
Mark