Wanting SetWarnings set to true

L

Leanne BT

Whether using DoCmd.SetWarnings True or SetWarnings Yes action, I can't get
the warnings to display. Just trying to create simple close button that will
not save if the answer to the prompt is no, but program always saves without
prompting. Have been searching for a setting also, with no luck.
 
R

Rick Brandt

Leanne said:
Whether using DoCmd.SetWarnings True or SetWarnings Yes action, I
can't get the warnings to display. Just trying to create simple close
button that will not save if the answer to the prompt is no, but
program always saves without prompting. Have been searching for a
setting also, with no luck.

There is no built in warning for saving a reocrd. If you want one (bad idea
IMO) then you have to add your own in the BeforeUpdate event of the form.

If MsgBox("Save?",vbYesNo) = VbNo Then
Cancel =True
Me.Undo
End If
 
J

Jon Lewis

What's your rational for thinking that a save record warning is a bad idea?
Just interested.

Jon Lewis
 
R

Rick Brandt

Jon Lewis said:
What's your rational for thinking that a save record warning is a bad idea?
Just interested.

I just don't follow the logic that users will expend effort to create or modify
records only to decide (oh well, never mind, I was just honing my typing
skills). If they don't want to change a record then they won't.

On those rare occasions where the user will decide that they don't want to save
changes why would a "Do you want to save?" be necessary? Won't they know
whether they want to save before such a prompt comes up?

Also, to maintain consistency one would have to add these silly prompts to EVERY
Access form created. If a user is exposed to one form that doesn't save without
a warning then they will expect that this is the normal way Access works and
then be surprised when they encounter a form that doesn't prompt them. Do you
really want to add this "feature" to every form you will ever create in all your
apps?
 
J

Jon Lewis

Well I'm not convinced! What about inadvertent keystrokes deleting
information from a field for example?
 
R

Rick Brandt

Jon said:
Well I'm not convinced! What about inadvertent keystrokes deleting
information from a field for example?

If the user realizes they did that they just press <Escape> to undo those
changes. If they don't realize it then I fail to see how a prompt is going
to help.
 
S

soho

50Ôª£¬¸øÄãÒ»¸ö´´ÒµµÄÆðµã




Èç¹ûÄãÊÇ´ó¿î£¬Èç¹ûÄãûÓиıäÏÖ×´µÄ¾öÐÄ£¬Èç¹ûÄãûÓиÒÓÚ´´ÐµÄÒâʶ£¬Èç¹ûÄã¹ýÓÚ
̰À·£¬Èç¹ûÄãûÓÐÏÖ´ú»¯µÄÍøÂçÉèÊ©£¬ÄǾͲ»Òª¿´Ò»ÏµÄÄÚÈÝÁË¡£
50Ôª£¬¿ÉÄܶÔÄãÎÒÀ´Ëµ½â¾ö²»ÁË´óÎÊÌ⣬µ«ÊÇÓÃ50ÔªµÄͶÈëÀ´»»È¡Èý¸öÔÂÒÔºóÿÔÂ1500
Ôª×óÓÒµÄÊÕÈ룬Áù¸öÔÂÒÔºó3000Ôª×óÓÒµÄÊÕÈ룬һÄêÒÔºóÿÄê10ÍòÔªµÄÄã¾õµÃÖµµÃÂð£¿
¿´µ½ÕâÀïÄã»á»³ÒÉ£¬ÕâôºÃµÄÏîÄ¿£¬ÕâôºÃµÄÊÕÒæ£¬ÄãÔõôÉáµÃ¸æËßÎÒ£¿£¡ºÜ¼òµ¥£¬ÎÒ
Ïëͨ¹ýÄãµÄ²ÎÓ룬Èøü¶àµÄÈ˲μӵ½ÎÒÃǵÄÓªÏú¶ÓÎéÖУ¬ÒÔ±ãʹÎÒÃÇʵÏÖ˫Ӯ¡£
Äã×î¹ØÐĵÄÊǼ´Ê¹ÓÐÕâÑùµÄÍøÕ¾£¬ÎÒÓÖÈçºÎÄÜ׬µ½Ç®ÄØ£¿ÎÒµÄÇ®ÊÇÄÇÀïÖ§¸¶°¡£¿ºÜ¼ò
µ¥£¬Ä㽨Á¢ÁË×Ô¼ºµÄÉÌÎñÍøÕ¾ÒÔºó£¬ÀïÃæ»áÓвúÆ·ÔÚÀïÃæ£¬ÄãÐèÒª¿ªÕ¹µÄ¹¤×÷¾ÍÊÇÈñð
ÈËÖªµÀ×Ô¼ºµÄÍøÕ¾£¬ÕâÑù£¬µ±ÓÐÈË·ÃÎÊÄãµÄ²úÆ·ÍøÕ¾µÄʱºò£¬Äã¾Í»áÊÕµ½¹ã¸æ·Ñ£¬ÏµÍ³
»á×Ô¶¯¸øÄãתÕË£¬Ã¿Ò»´Îµã»÷£¬Äã¶¼»áÓÐ0.1ÔªµÄ¹ã¸æÊÕÈ룻ËäÈ»ºÜÉÙ£¬µ«ÊÇÄãµÄÍøÕ¾
²úÆ·ºÜ¶à£¬Ö»ÒªÄãºÜºÃµÄÈÃÈËÀ´·ÃÎÊÄãµÄÍøÕ¾£¬ÄÇôÄã¾Í»á²»¶ÏµÄÊÕÈ룻Èç¹ûͨ¹ýÄãÍø
Õ¾µÄÐû´«ÓÐÈË´ÓÍøÉ϶¨¹º²úÆ·£¬ÄÇôÄ㽫µÃµ½³É½»¶î30%µÄÌá³É£¬ÒòΪÄãÊÇËûÃǵĴúÀí
°¡£»Èç¹ûÄãµÄ×ö·¨»¹ÓкܶàÈ˸ÐÐËȤ£¬Äã¿ÉÒÔ½éÉÜËüÃǼÓÈ룬¾ÍÏóÎÒÒ»Ñù£¬ÕâÑùÄã¿ÉÒÔ
µÃµ½¼ÓÃË·Ñ£¬ËäȻÿ¸öÈËÖ»ÓÐ10Ôª£¬µ«ÊÇËæ×ŲÎÈëÈËÔ±µÄÔö¼Ó£¬ÄãÒ»Ñù¿ÉÒÔÊÕµ½¼ÓÃË
·Ñ£¬ÒòΪ´ÓÄãËãÆð£¬Ö±µ½µÚÎå²ã£¬Ã¿Ò»¸öÈ˼ÓÈ룬Äã¶¼»áÊÕµ½¼ÓÃË·Ñ¡£
¿´Ã÷°×ÁËÂð£¿Äã¿ÉÒÔ²»ÐÅ£¬µ«ÊÇÄã¿ÉÒÔ¿´¿´£¬Äã¿ÉÒÔ×¢²áÁÙÊ±ÍøÕ¾£¬ÀïÃæÓкÜÏêϸµØ½é
ÉÜ¡£ÄãÒªÊÇÏë×¢²á¾Íµ½ÎÒµÄÍøÕ¾ÉÏÀ´£ºhttp://www.nud8.com/mlm/?mid=lucre£¬½øÈ¥ÒÔ
ºó¾Í¿ÉÒÔ×¢²áÁÙÊ±ÍøÕ¾£¬µ±ÄãÕæµÄ´òËã×öµÄʱºò£¬ÎÒ»á¸øÄ㼤»î¡£ÒÔºóµÄÊÂÇ飬ÎÒ»á½Ì
ÄãÈçºÎ½øÐÐÐû´«£¬ÓкܶàרҵµÄ¹¤¾ß¡£
ÎÒµÄÓÊÏ䣺[email protected]

ÆÚ´ýÄãµÄ²ÎÓëºÍ½»Á÷qq:416038955

http://lucre.nud8.com

http://www.nud8.com/pggw/?mid=lucre

http://lucre.sohounite.net/






ÖÂ
Àñ£¡
 
Top