Hello
I have noticed that whenever I set a form's RecordSource property
in code it launches the form's OnActivate event.
In one of my application I set a form's RecordSource to zero lenght string
during the form's OnClose event
Private Sub Form_Close()
Me!RecordSource = ""
End Sub
On some computers setting the RecordSource during the OnClose event
calls the OnActivate event of that form and causes errors since some of the
code in the
OnActivate refers to controls and subforms that are now closed.
Any thought on this?
Why is it not happening on all computers?
Thanks
G Gerard
I have noticed that whenever I set a form's RecordSource property
in code it launches the form's OnActivate event.
In one of my application I set a form's RecordSource to zero lenght string
during the form's OnClose event
Private Sub Form_Close()
Me!RecordSource = ""
End Sub
On some computers setting the RecordSource during the OnClose event
calls the OnActivate event of that form and causes errors since some of the
code in the
OnActivate refers to controls and subforms that are now closed.
Any thought on this?
Why is it not happening on all computers?
Thanks
G Gerard
Comment