I am a total beginner at modules, but want to create a standard module which handles enabling and disabling etc of a group of buttons (New, Edit, Delete, Escape, OK), which appear with the same names and functions on a large number of forms in the database (Access 97). To do this, I think the code must include the name of the form from which it was called (e.g. Forms!SourceForm.BtnNew.Enabled=False). Do I declare a global variable and then assign it the form name before calling the standard module? If so, where do I declare it so that it's already dimensioned before it's needed? Presumably I only declare it once, so it can't be in the form module for each of the individual forms. Do I declare it As String or As Form? And how do I use it in the standard module? Do I need to create another variable to place it in the code?
Any help much appreciated, but hopefully in terms I can understand at my level.
Thanks
John
Any help much appreciated, but hopefully in terms I can understand at my level.
Thanks
John
Last edited: