Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access VBA: How to skip if no worksheet in linked data source?

Status
Not open for further replies.

JGKWORK

IS-IT--Management
Apr 1, 2003
342
GB

Hi,

In Access I have several linked data sources (each are excel spreadsheets). My code performs functions on each linked data source, but sometimes one of the spreadsheets may not have a worksheet at all (so the link will not be able to pull back any data).

Question is, how do I write an if else statement so that if there is no worksheet in the linked data source, it jumps to the next piece of code?

Many thanks...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top