DoCmd.OutputTo will be your friend here... depending on whether you want Excel, PDF, whatever for the output.
When you say the 'output' of two tables, do you mean a query? You can use a variety of methods to get the number of rows (DCount is easiest, but slow), and if it's 0, don't even bother...