Why Do I get Path/File Access Error On User's Computers When I Try To Create a Text File?
- From: R Tanner <tanner.robin@xxxxxxxxx>
- Date: Wed, 7 Jan 2009 11:43:14 -0800 (PST)
I am trying to run the following code to create a text file when the
user selects a button.
Public Sub CreateCredentials()
Dim FileNum As Integer, MyFile As String
FileNum = FreeFile
MyFile = "C:\Documents and Settings\Default User\Application Data
\Identities\Credentials.LOG"
Open MyFile For Append As #FileNum
Print #FileNum, "UserName: " & Forms![frmMain]![User]
Print #FileNum, "Password: " & Forms![frmMain]![PWord]
Close #FileNum
End Sub
I get a Path/File Access error on some machines when I try to run
this. Any ideas why?
.
- Follow-Ups:
- Prev by Date: Re: Form records
- Next by Date: Re: Need a form control to enter generic text that is not tracked
- Previous by thread: Need a form control to enter generic text that is not tracked
- Next by thread: Re: Why Do I get Path/File Access Error On User's Computers When I Try To Create a Text File?
- Index(es):