I am trying to write code that will generate some controls on a form based on information in a table. I've got that part of the code working. I have a main menu form that has a button that opens the form in design view, adds the controls and then opens it for use. My problem is, none of my public variables retain there value after the form is opened. I have tried using a global variable in a module and it doesn't work either. I added debug.print variables to the form_load. Then i added a button and copied the form_load debug.print statement to it's onclick event. It displays the correct values for the Form_Load, but 0, 0 for the onclick. does anyone know what would them to lose their values?