[AccessD] Raising events from a subform and sinking them in the parent form

Salakhetdinov Shamil mcp2004 at mail.ru
Mon Mar 24 15:48:03 CDT 2014


 Hi Charlotte --

Why not just define a

Public Sub ProcessEvent(ByVal eventName As String, ParamArray eventArgs())
    MsgBox eventName & ", Params Count = " & UBound(eventArgs) + 1   ' test
End Sub

in the Parent form and call it from a  subform like that

Me.Parent.ProcessEvent "Test event", "Prm1", 123.45  ' test call
-- Shamil


Mon, 24 Mar 2014 13:23:54 -0700 from Charlotte Foust <charlotte.foust at gmail.com>:
>I know I've done this before but it probably required a class, which I
>hesitate to use in this app.  Has anyone else had problems raising and
>sinking events between forms in Access 2010/2013?
>
>Charlotte
>-- 
>AccessD mailing list
>AccessD at databaseadvisors.com
>http://databaseadvisors.com/mailman/listinfo/accessd
>Website:  http://www.databaseadvisors.com



More information about the AccessD mailing list