In a macro, a make-table-query runs, the resultant table is then transferred to another database. That database is used as the source for a Word mail-merge (all automated w/i the macro). If the query returned no records, Word of course gives an error saying the source was blank.
I need to find a way to terminate the macro if the result of the query is no records (I don't want users dealing with the Word errors). Its not as easy as having an "on no data" event to work with. --Any help is appreciated, I'm a real novice at sql and VBA.
I need to find a way to terminate the macro if the result of the query is no records (I don't want users dealing with the Word errors). Its not as easy as having an "on no data" event to work with. --Any help is appreciated, I'm a real novice at sql and VBA.