PC Review


Reply
Thread Tools Rate Thread

Message Box Question

 
 
Don Rountree
Guest
Posts: n/a
 
      2nd Aug 2003
I have a form that may be closed without the primary
index value being entered. When this happens an error
message is displayed. I would like to override that
error message with one of my own. I also want to be able
to close the form without further error messages (also
not save the current record) by having the user to select
<Cancel> on my own Message Box. Can someone help me?

Don Rountree
 
Reply With Quote
 
 
 
 
Albert D. Kallal
Guest
Posts: n/a
 
      2nd Aug 2003
If you don't have a sub-form, then you can for a cancel use:

me.Undo
docmd.Close

The undo will un-do all changes, and thus the form can be closed.


--
Albert D. Kallal (MVP)
Edmonton, Alberta Canada
(E-Mail Removed)
http://www.attcanada.net/~kallal.msn


 
Reply With Quote
 
HSalim
Guest
Posts: n/a
 
      3rd Aug 2003
In addition to considering the suggestions of others here, also check out
the validation text property of the table.


"Don Rountree" <(E-Mail Removed)> wrote in message
news:00c401c35929$96e9c5e0$(E-Mail Removed)...
> I have a form that may be closed without the primary
> index value being entered. When this happens an error
> message is displayed. I would like to override that
> error message with one of my own. I also want to be able
> to close the form without further error messages (also
> not save the current record) by having the user to select
> <Cancel> on my own Message Box. Can someone help me?
>
> Don Rountree



 
Reply With Quote
 
Tim Ferguson
Guest
Posts: n/a
 
      3rd Aug 2003
"Ken Snell" <(E-Mail Removed)> wrote in
news:(E-Mail Removed):

>
> I am not suggesting the use of the OnClose event. Rather, I have
> suggested the use of the OnClick event of a command button that is
> clicked in order to close a form.
>
>


<putting lenses back in>

Duhh -- yes I see now. Sorry!

All the best

Tim F



 
Reply With Quote
 
Ken Snell
Guest
Posts: n/a
 
      4th Aug 2003
No problem....I've been there and done that!

:-)


--
Ken Snell
<MS ACCESS MVP>

"Tim Ferguson" <(E-Mail Removed)> wrote in message
news:Xns93CCD8C7638E9garbleme4455656@207.46.248.16...
> "Ken Snell" <(E-Mail Removed)> wrote in
> news:(E-Mail Removed):
>
> >
> > I am not suggesting the use of the OnClose event. Rather, I have
> > suggested the use of the OnClick event of a command button that is
> > clicked in order to close a form.
> >
> >

>
> <putting lenses back in>
>
> Duhh -- yes I see now. Sorry!
>
> All the best
>
> Tim F
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Message box question Bruce Microsoft Access Forms 3 7th Jun 2004 02:12 AM
message box question mark Microsoft Excel Programming 4 8th Apr 2004 08:08 PM
Message/Question for JAX? Steve Marshall Windows XP Performance 1 27th Dec 2003 11:46 PM
Question on a message Charles Sampson Microsoft Windows 2000 1 17th Dec 2003 04:15 PM
Re: Message Box Question Steve Schapel Microsoft Access Form Coding 0 3rd Aug 2003 02:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:56 AM.