J
Jeff Mason
Hi,
I'm trying to create a form that acts like a msgbox; that is, during
execution of VBA, the form should pop up, get user inputs, and then continue
program execution.
My problem is that I can't get the form to have the focus. The form has the
pop-up and modal properties set, and a dialog box border style. I load the
form using docmd.openform. This works correctly. I set a few form
parameters. This too works correctly. Then I try to give the form the focus
using the setfocus statement. The form flashes briefly, then the calling
program just continues to the next statement after the setfocus statement.
Code in the form's OnGotFocus event is not executed.
I'm running Access 2000 on XP.
I'm stumped. Any ideas? Help would be much appreciated.
Jeff
I'm trying to create a form that acts like a msgbox; that is, during
execution of VBA, the form should pop up, get user inputs, and then continue
program execution.
My problem is that I can't get the form to have the focus. The form has the
pop-up and modal properties set, and a dialog box border style. I load the
form using docmd.openform. This works correctly. I set a few form
parameters. This too works correctly. Then I try to give the form the focus
using the setfocus statement. The form flashes briefly, then the calling
program just continues to the next statement after the setfocus statement.
Code in the form's OnGotFocus event is not executed.
I'm running Access 2000 on XP.
I'm stumped. Any ideas? Help would be much appreciated.
Jeff