G
GD
Is there a way to prevent a macro from being triggered by one user if another
user already has it running, in a multiple user environment?
My situation is this: I have a form that the user can enter between 1 and 5
parameter criteria. A query was then set up to search for these criteria
anywhere within 3 separate fields in a 1,000,000+ record table. Suffice it
to say, it was desperately slow, even when indexing the search fields!!
I've come up with a much quicker search by narrowing the focus to just the
particular vendor the user is concerned with + the various alternate names
our branches around the country may have for that vendor. In order to make
it as speedy as possible, I'm using several holding tables to temporarily
store the data, thereby utilizing the indexing.
The crux of my problem is that there are several delete queries at the
beginning of the macro to clear the holding tables for a new search.
Therefore, if one user is running the macro and another triggers it, won't
the tables be cleared before the first user's search be disrupted? The macro
takes 5-30 seconds to run, depending on the size of the vendor's data, but
that's plenty of time for 6 users to choose the same macro.
So again, can further use of the macro be disabled while running? Or
better, can it be set up to run only when it is finished running its current
course??
Thanks!!!!!
user already has it running, in a multiple user environment?
My situation is this: I have a form that the user can enter between 1 and 5
parameter criteria. A query was then set up to search for these criteria
anywhere within 3 separate fields in a 1,000,000+ record table. Suffice it
to say, it was desperately slow, even when indexing the search fields!!
I've come up with a much quicker search by narrowing the focus to just the
particular vendor the user is concerned with + the various alternate names
our branches around the country may have for that vendor. In order to make
it as speedy as possible, I'm using several holding tables to temporarily
store the data, thereby utilizing the indexing.
The crux of my problem is that there are several delete queries at the
beginning of the macro to clear the holding tables for a new search.
Therefore, if one user is running the macro and another triggers it, won't
the tables be cleared before the first user's search be disrupted? The macro
takes 5-30 seconds to run, depending on the size of the vendor's data, but
that's plenty of time for 6 users to choose the same macro.
So again, can further use of the macro be disabled while running? Or
better, can it be set up to run only when it is finished running its current
course??
Thanks!!!!!