Hi Bob,
Just put the code into your form's parent class, assuming that your forms inherit from a common ancestor.
>Hi,
> I would like to would like to add code in the BeforeOpenTables in the Data Environment of every form that I create. I would like to do this once and have it created automatically when I create the form. The code is the same for every form. Can this be done or do I have to hard code it to the form's data environment after I create a new form?
>
>Thanks in advance,
>Bob
-=Gary