michaellysons
Registered User.
- Local time
- Today, 05:17
- Joined
- May 7, 2004
- Messages
- 11
Hi
I'd like to make a sub form raise an event that can be trapped by the master form. Is this possible in Access? I have tried doing it and while I can create and raise the event, the master form seems unable to trap that the event has fired.
For example, in the sub form I have some code like;
Public Event RecordChanged
.
.
.
Private Sub MySub()
RaiseEvent RecordChanged
End Sub
Then, in the master form I want to do something like;
Private Sub SubForm_RecordChanged()
Msgbox "Record changed in sub form."
End Sub
but the master form does not appear able to trap this event. Note that the event above is merely an example.
Any help greatly appreciated.
Thanks
Michael
I'd like to make a sub form raise an event that can be trapped by the master form. Is this possible in Access? I have tried doing it and while I can create and raise the event, the master form seems unable to trap that the event has fired.
For example, in the sub form I have some code like;
Public Event RecordChanged
.
.
.
Private Sub MySub()
RaiseEvent RecordChanged
End Sub
Then, in the master form I want to do something like;
Private Sub SubForm_RecordChanged()
Msgbox "Record changed in sub form."
End Sub
but the master form does not appear able to trap this event. Note that the event above is merely an example.
Any help greatly appreciated.
Thanks
Michael