I've inherited an access database.
There is at least one instance where a subform is used on 2 different forms. Let's call them form1 and form2.
The problem is that code in an event procedure (after update) assumes that the form is form1. The problem is that this event procedure is now required in form2.
Can you detect which is the main form in the subform event or can the code
If Forms![form1]![dataname] <> "Sale" Then
be changed to use something meaning mainform!?
There is at least one instance where a subform is used on 2 different forms. Let's call them form1 and form2.
The problem is that code in an event procedure (after update) assumes that the form is form1. The problem is that this event procedure is now required in form2.
Can you detect which is the main form in the subform event or can the code
If Forms![form1]![dataname] <> "Sale" Then
be changed to use something meaning mainform!?