Export Query (1 Viewer)

Nero

Shop smart, shop S-Mart
Local time
Today, 04:11
Joined
Jan 8, 2002
Messages
217
I have a query which exports data as a .txt file.
Is there a way of stopping the export if no data is returned from the query, something similar to the report On NoData event ???
 

shay

Registered User.
Local time
Today, 04:11
Joined
Apr 29, 2002
Messages
169
You don't say how the export is triggered but

if (dcount("*", YourQuery) > 0 then export

is one way to do it.

shay :cool:
 

Nero

Shop smart, shop S-Mart
Local time
Today, 04:11
Joined
Jan 8, 2002
Messages
217
Shay,
Thanks for your reply.
The query is triggered through code.
I will give your suggestion a go.

Thanks again
 

Users who are viewing this thread

Top Bottom