Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GoToControl Not Working

Status
Not open for further replies.

NMiller007

Programmer
Nov 15, 2006
65
US
I am using a GoToControl in an Access macro to validate a field. The macro is run from the BeforeUpdate of the field (I tried AfterUpdate as well). The macro checks the condition, if true, I have a cancel event. Then a message box, that does pop up. Then I added a GoToControl to move back to the bad field.

Whether I tab out of the field or click on another field, after the message box pops up, I am in the new field.

What am I doing wrong?
 
Hoe are ya NMiller007 . . .

You shouldn't need gotocontrol!. disable/remove the line. Focus should stay where it is . . .

Calvin.gif
See Ya! . . . . . .
 
hit submit too soon . . .

that is Focus should stay where it is if you cancel the event! . . .

Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top