Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Which Query was run?

Status
Not open for further replies.

DeZiner

Programmer
May 17, 2001
815
US
I have 4 queries. Only one will run via if statements based on form input. Is there a way to figure out which one actually ran? They all share the same name. DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
 
I don't know exactly what you mean by "find out". You can set a variable inside the IF block with a different value for each version of the query and display it. Or Log it, I guess. If debugging is turned on, you can view the SQL statements at the bottom of the page. Other than that, if they have the same name, there is no easy way to tell.
 
That's a great Idea. I can add variable named whatever and set it to different values in each query./ Then check for the value of the variable later.

So easy just looking too deep.

Thanks! DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top