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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Function depending on a query

Status
Not open for further replies.

samotek

Technical User
May 9, 2005
197
BG
I have a function that imports tables and appends them.I want this function to be executed only when a field is true, in my case the field Orders.Check in the following sql :
SELECT Orders1.orderid, Orders1.Check
FROM Orders1;
The function is called TSave.How should i call the function only when the field Check is True ?
 
You could wrap your function around with an If chkOrders=-1 then
your code
else
exit function


If IT ain’t working Binnit and Reboot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top