[AccessD] Lost Warnings...

Brett Barabash BBarabash at TappeConstruction.com
Wed Feb 19 13:19:00 CST 2003


One of the most valuable lessons that I learned the hard way is to ALWAYS
put the DoCmd.SetWarnings True, DoCmd.Echo True and DoCmd.Hourglass False in
the Exit block, if my routine alters those settings.  That way, if it
crashes, the error handler will cleanup after itself!

Ever have code blow up with Echo set to False?  Scariest damn thing I've
ever seen!


-----Original Message-----
From: Gustav Brock [mailto:gustav at cactus.dk]
Sent: Wednesday, February 19, 2003 3:35 AM
To: Drew Wutka
Subject: Re: [AccessD] Lost Warnings...


Hi Drew

> Interesting.  So if Access crashes, the docmd.setwarnings sticks in the
> actual options, not just as a temporary flag eh?  I always knew to be
> careful with SetWarnings, but I didn't realize it would stick from session
> to session.



More information about the AccessD mailing list