I am having a great deal of trouble calling a sub from an on click event on a tabbed form. I am trying to reduce the size of my database by creating a module to handle a routine that is called from about 10 different places on a form. I wanted to write the code once in a module rather than have it exist 10 different times in on click events in the form. So I moved the code to a module and tried to call the sub from the on click events on the various places it occurs on the form. The first on click event I tried was on a tree tabbed sub form. The sub makes various controls visible and sets some other properties depending on which tab is clicked. Getting to the issue!!!!!! It doesn’t work. When I go to compile the sub I get an “Invalid use of property” error. The steps I used to create the module are as follows: I created a new module and named it. I added a sub to the module which sets the different properties on the form. In the on click event of the tabbed sub form I call the sub by its name exactly. Can someone guide me through this issue and let me know what I am doing wrong?
Thank You