UNDO for unbound control, NOTHING WORKS
From: rgrantz (rgrantz_at_hotmail.com)
Date: 03/21/05
- Next message: rgrantz: "Re: UNDO for unbound control, NOTHING WORKS"
- Previous message: Jeff: "RE: Opening another Program & its file"
- Next in thread: rgrantz: "Re: UNDO for unbound control, NOTHING WORKS"
- Reply: rgrantz: "Re: UNDO for unbound control, NOTHING WORKS"
- Reply: Marshall Barton: "Re: UNDO for unbound control, NOTHING WORKS"
- Reply: PC Datasheet: "Re: UNDO for unbound control, NOTHING WORKS"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 20 Mar 2005 16:14:52 -0800
I have an unbound form in which users input the Start Date and End Date to
use for reports that open based on the button clicked. When the user enters
a date syntax wrong (ie. 1//2/03), it seems the place to capture the 2113
(invalid entry) error is in the form's OnError event, NOT the control's
BeforeUpdate event. I am able to trap and show my own msgbox, but cannot
for the life of me undo the text entered in the date field. None of the
following works after the dataerr = 2113 check:
cancel = true
me.undo
me.controlname.undo
me.controlname = ""
me.controlname.text = ""
me.controlname.value = ""
me.controlname = null
All the posts I've seen on undoing unbound control entry say to use
me.controlname.undo, but this does nothing. The Esc key works, and I've
seen that me.undo is supposed to duplicate the pressing of the Esc key, but
it isn't.
I not only want to undo the entry so the user has to re-enter, but also
because I need them to be able to press my "cancel report and return to main
menu" button. They can't leave the form if they entered an invalid date
syntax until they use the Esc key to undo their entry.
I apologize for the extreme newbieness of this post, but I'm at my wit's end
here.
Any help is greatly appreciated, and thanks.
- Next message: rgrantz: "Re: UNDO for unbound control, NOTHING WORKS"
- Previous message: Jeff: "RE: Opening another Program & its file"
- Next in thread: rgrantz: "Re: UNDO for unbound control, NOTHING WORKS"
- Reply: rgrantz: "Re: UNDO for unbound control, NOTHING WORKS"
- Reply: Marshall Barton: "Re: UNDO for unbound control, NOTHING WORKS"
- Reply: PC Datasheet: "Re: UNDO for unbound control, NOTHING WORKS"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|