empty tables for export

2 posts / 0 new
Last post
ortizmario6025@...
Offline
Joined: 09/03/2021 - 11:54
empty tables for export

Hello,
How to control if an extraction is empty, which macro continues to export and does not give me a stop. o Idea does not export empty tables?

Brian Element's picture
Brian Element
Offline
Joined: 07/11/2012 - 19:57

You can check to see if the database is empty before continuing.  

dim db as database

set db = client.opendatabase("My database.imd")

if db.count = 0 then

     'do nothing as it is empty

end if