sgursahaney
Programmer
I am developing an Access Report that pulls information from two tables located on different SQL Server systems. I have been successfully able to link the two tables and develop a query that displays the data in both tables using a UNION ALL query.
However, there will be situations where one (or both) of the databases will be unavailable. During these instances, I want to simply return the data from the available database. I figured I could create 3 queries (1 with the UNION ALL, 1 for the first table, and 1 for the second table) and specify the appropriate query in the Report RecordSource depending on the availability of the databases. But, I am stuck on trying to figure out whether the databases are available. Does anybody have any suggestions?
-- Suresh
However, there will be situations where one (or both) of the databases will be unavailable. During these instances, I want to simply return the data from the available database. I figured I could create 3 queries (1 with the UNION ALL, 1 for the first table, and 1 for the second table) and specify the appropriate query in the Report RecordSource depending on the availability of the databases. But, I am stuck on trying to figure out whether the databases are available. Does anybody have any suggestions?
-- Suresh