gusbrunston
Programmer
Hi:
After trapping an invalid entry, I'm trying to return the user to the appropriate control, like this:
[tt]
...
MsgBox msgString, 48, titleString
DoCmd.CancelEvent 'tried omitting this
Me!cboPayerPayee.Undo 'tried omitting this
Me.cboPayerPayee.SetFocus
...[/tt]
However, after closing the msg box the focus goes to the next control in the tab order (tab view).
Appreciate any help with this.
Gus Brunston, using Access2000 Intermediate skills.
After trapping an invalid entry, I'm trying to return the user to the appropriate control, like this:
[tt]
...
MsgBox msgString, 48, titleString
DoCmd.CancelEvent 'tried omitting this
Me!cboPayerPayee.Undo 'tried omitting this
Me.cboPayerPayee.SetFocus
...[/tt]
However, after closing the msg box the focus goes to the next control in the tab order (tab view).
Appreciate any help with this.
![[glasses] [glasses] [glasses]](/data/assets/smilies/glasses.gif)