![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
#4
| |||
| |||
|
#5
| |||
| |||
|
|
In a class form I am doing the following. Public Property Set Form(FrmIn As Access.Form) Set frm = FrmIn frm.OnGotFocus = "[Event Procedure]" frm.BeforeUpdate = "[Event Procedure]" End Property Private Sub frm_BeforeUpdate(Cancel As Integer) MsgBox "This code is running. "End Sub Private Sub frm_GotFocus() MsgBox "This code isn't running. Why "End Sub The event I create for before update is working for forms that use the class but not for the gotfocus event. Is this to do with the fact that the event is called beforeupdate in both places and called ongotfocus and gotfocus? |
![]() |
| Thread Tools | |
| Display Modes | |
| |