I have 4 forms that work fine on their own. As they all relate to different aspects of a job, I wondered if it would be possible to collect 3 of them on the 4th one as subforms on different pages of a tab control.
This works fine except for the SQL statements that open a query and look back to a form for parameter info ( job number). As the form in this case, is opened as a subform, the query fails as the form it is looking for isn’t there.
**********************
Is there code which can run on open that will determine if the form is opened in its own right or as a subform so that I can vary the SQL appropriately?
Actually, I think that the form collection could be queried to see if the form is open as a form (maybe??) But how???????
**********************