I have an app that looks like this:
Private Sub Form_Load()
Show 1 'setting the form as modal
SetFocus 'setting the focus to a text box on the form
EndSub
Here is the problem...
Once I declare the form as modal (Show 1) it never goes to the set focus step. It mves on the the rest of the script. If I unload the modal form, it then goes back to the line where I set the focus but obviously errors because it can't set the focus on something that I unloaded.
Any advice or tips?
Thanks
fergmj
Private Sub Form_Load()
Show 1 'setting the form as modal
SetFocus 'setting the focus to a text box on the form
EndSub
Here is the problem...
Once I declare the form as modal (Show 1) it never goes to the set focus step. It mves on the the rest of the script. If I unload the modal form, it then goes back to the line where I set the focus but obviously errors because it can't set the focus on something that I unloaded.
Any advice or tips?
Thanks
fergmj