I want to make a form containing six to ten command buttons. Each command button will open a different subform. Is it possible to create a public function of nested If to accomplish this? If so, code example of nested If would help a lot. I could then call the function from the On Click of each command button. If this is an undesireable approach, please let me what a better approach would be.