global code in the OnOpen event of a report
i have the following code in the OnOpen event of an report that works fine:
Private Function OfficeFilter(office)
If office = 1 Then
Me.FilterOn = True
Me.Filter = strLondon
End If
End Function
i want however to replace the Me and build a global public function that should
be valid for all the other reports without mentioning their name.
is it possible to use a global function in the OnOpen event of a report ?
just to mention that office is a control on any form in the database,
and strLondon is a constant.
I have somewhere a grave mistake but i cannot find it where
I will be grateful for any help