PS. I think the error message simply means you're using a dot notation outside of your With block. In other words, you already had the End With line before the line with .sql in it.
PS. I think the error message simply means you're using a dot notation outside of your With block. In other words, you already had the End With line before the line with .sql in it.
PS. I think the error message simply means you're using a dot notation outside of your With block. In other words, you already had the End With line before the line with .sql in it.