What I wanted was to check if the input table is already "read" and the output table is already created, if so I don't have to do it again.You could just open both (or open one and create the other) and leave them that way until the app is exited.
Imagination is more important than knowledge