I'm using Access 2000. In my code, I often use the DoCmd.SetWarnings command to turn warnings off before running queries, and then to turn them back on again afterward. Is there a way to programatically determine if warnings are currently enabled or disabled?
I have a subroutine that runs a query, and I would like to have warnings off before the query runs, and then have the status revert to what it was before the subroutine was called. I don't want the subroutine to leave the warnings disabled if I'm expecting them to be there, but I don't want it to enable them if they were already disabled.
My subroutine is tied to a timer event, so I can't be certain of which status will be set prior to calling it. If there is no way to do this, then I will have to simply turn warnings off and do all of my own when appropriate, but I'd prefer not to go that route.
Any help you can offer is appreciated.
Sleep is for people with no caffeine.
I have a subroutine that runs a query, and I would like to have warnings off before the query runs, and then have the status revert to what it was before the subroutine was called. I don't want the subroutine to leave the warnings disabled if I'm expecting them to be there, but I don't want it to enable them if they were already disabled.
My subroutine is tied to a timer event, so I can't be certain of which status will be set prior to calling it. If there is no way to do this, then I will have to simply turn warnings off and do all of my own when appropriate, but I'd prefer not to go that route.
Any help you can offer is appreciated.
![[morning] [morning] [morning]](/data/assets/smilies/morning.gif)