oneidalake
New member
- Local time
- Today, 13:04
- Joined
- Mar 9, 2017
- Messages
- 10
I have a form with a button that adds a field to another form using vba CreateControl.
I want to set the OnGotFocus Event Procedure of that new field.
For example, the new field that was created is called test123 within Form "ABC".
I want to use vba to create a vba statement for test123 so when I view the code for form ABC, there is a newly created line that says...
Private Sub Test123_GotFocus()
MsgBox "Hello"
End Sub
Any ideas?
Thank you,
Jim
I want to set the OnGotFocus Event Procedure of that new field.
For example, the new field that was created is called test123 within Form "ABC".
I want to use vba to create a vba statement for test123 so when I view the code for form ABC, there is a newly created line that says...
Private Sub Test123_GotFocus()
MsgBox "Hello"
End Sub
Any ideas?
Thank you,
Jim