Hello, '--- Open "c:\test.txt" For Output As #1 ' Open file for output. Write #1, "blabla" Close #1 '--- Why doesn't this work, it worked before? Error message: (in Dutch) Fout 54 tijdens uitvoering: Ongeldige bestandsmodus Please help. Thanks, Hans
Try: Print #1 instead of: Write #1 -- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "Hans" <_h.dielissen_at_multiweb.nl_> wrote in message news:3c4f4$44cbc0ce$5468cf1c$23805@cache20.multikabel.net...
Might you not have write permission to the root of your C: drive? -- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no private e-mails, please) "Hans" <_h.dielissen_at_multiweb.nl_> wrote in message news:ea225$44cd0f94$5468cf1c$32706@cache20.multikabel.net...
Thanks Allen and Douglas for your responses but it also doesn't work. It gives the same errortext in Dutch: "Ongeldige bestandmodus" something like "not valid file mode" Hans "Douglas J. Steele" <NOSPAM_djsteele@NOSPAM_canada.com> schreef in bericht news:u66c4y8sGHA.4444@TK2MSFTNGP06.phx.gbl...