code no longer works

E

emil

I have the following code that worked fine for a couple of years, and now I
get an error message, "Run tme error 54, Bad file mode":

If rs.RecordCount > 0 Then
Open "c:\laboratorij\P_100240_000002.txt" For Output As #99
Vrsta = "T0000028060101000001060707"
Print #99, Vrsta

Any idea what could have happened, and how to get the code to work again?

Thanks in advance,

Emil
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top