In an earlier post with replys VPH suggested using a Global Boolian Variable. From what I've read those sorts of things can only exist in a standard module. So I created one that looks like:
Option Compare Database
Option Explicit
Public EventSwitch As Boolean
EventSwitch = False
End Sub
but I get:
Compile Error
Invalid outside procedure
I crawled over the net and am still in the dark, and have tried several versions of a solution.
The way it's to be used is I have a timer event that has a long running query, but the users need to be able to break in. So I am using PHV's suggestion. Just need to know where the Global Boolian variable is created. An example would be a big help.
Thanks again
jpl
Option Compare Database
Option Explicit
Public EventSwitch As Boolean
EventSwitch = False
End Sub
but I get:
Compile Error
Invalid outside procedure
I crawled over the net and am still in the dark, and have tried several versions of a solution.
The way it's to be used is I have a timer event that has a long running query, but the users need to be able to break in. So I am using PHV's suggestion. Just need to know where the Global Boolian variable is created. An example would be a big help.
Thanks again
jpl