I read that when Napoleon attacked in 1796, the Republic of Venice had hardly any military left to defend itself. How come Venice hadn't already lost Dalmatia to the Ottomans or Lombardy-Venetia to the Habsburgs by then?

by asdahijo

I thought establishing a connection between Tyrol and Milan was a major goal of Habsburg foreign policy, yet the Habsburg-Venetian border remained largely unchanged for 300 years or so. I'd have expected that after the War of the Spanish Succession Habsburg would pounce the moment Venice showed weakness, but apparently this never happened, and I don't understand why.

Squeezymypenisy

I'm confused. What happened to their army? Was it destroyed in prior battles with napoleon?