I have an MDI application. At times, I need to make a call to a form only if the form is loaded.
So, for instance, I might have a line of code on frm1 that says:
With frm2.Adodc1
.commandtype = blah
.Recordsource = blah
.refresh
End With
There are two problems:
I only need to perform this refresh if frm2 is loaded. And, when I execute this code, frm1 loses focus, but I don't want that to happen.
Any ideas/suggestions on how to handle this? This is an issue throughout my application.
So, for instance, I might have a line of code on frm1 that says:
With frm2.Adodc1
.commandtype = blah
.Recordsource = blah
.refresh
End With
There are two problems:
I only need to perform this refresh if frm2 is loaded. And, when I execute this code, frm1 loses focus, but I don't want that to happen.
Any ideas/suggestions on how to handle this? This is an issue throughout my application.