You should always always declare your variables before using them. Always!

Try doing a Dim inst As String and see what happens.

(PS: Always!)