I think you could use an If statement with or. Keep in mind, if the number of materails cahnge, then the if statement will have to be changed. Best bet would be to create an if statement on form (a) that checks the items listed in table of materials. If the material exists, open, else msgbox and close form (b). An investment in knowledge always pays the best dividends.
by Benjamin Franklin