I'm drawing a complete blank here. In Access 2003 I have an application consisting of tabs on a form. I need to set a variable based on which of two tabs has been selected. So if tab1 is selected, varx = 1. If tab2 is selected varx=0. I think I need to set varx in the tab1/tab2 click events but how do I pass the value of this variable on to all the other subs and functions that need to know whcih tab set the variable?