Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Runtime error '75' Path/File Access Error

Runtime error '75' Path/File Access Error

Runtime error '75' Path/File Access Error

Hi there,

Does anybody know why I keep getting this error?  I try to create a text file from this vb program and it keeps giving me this error Runtime error '75' Path/File Access error.  The path/File is pointed to my C: drive and I have full access to it.


RE: Runtime error '75' Path/File Access Error

Can you post some code?

RE: Runtime error '75' Path/File Access Error

Const ELECTIONDRIVE As String = "\\LKADFC6\Drivers"                        ' Drive letter mapping
Const ELECTION2007DIR As String = "\Election2007\"          ' Local directory for exported documents
Const DATADIR As String = "ElectionData\"                   ' Election directory for data
Const PHONEINDIR As String = "PhoneIn\"                     ' Phone In data files directory
Const COMPLETEDIR As String = "Complete\"  

Hi HandleMan,

Above is the path and below is where it got stuck trying to open to write to it.

Private Sub Create_RaceResultsFile()

Open RaceResultsStr For Output Access Write Lock Write As #RaceResultsNumberFile


RE: Runtime error '75' Path/File Access Error

Add a couple of Debug.Print statements and show us the results


Private Sub Create_RaceResultsFile()
Debug.Print "Filename = " & RaceResultsStr
Debug.Print "Filenumber = " & RaceResultsNumberFile

Open RaceResultsStr For Output Access Write Lock Write As #RaceResultsNumberFile

Good Luck
To get the best from these forums read FAQ731-376: Eng-Tips.com Forum Policies before posting
Steam Engine enthusiasts
Steam Engine Prints

RE: Runtime error '75' Path/File Access Error

Does the specified directory exist?  I don't believe it will be created automatically just by specifying the path.  If any portion of the path does not exist yet you will have to explicitly create it.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


White Paper: Rapid Manufacturing with FDM
The automotive industry is increasingly turning to additive manufacturing, and fused deposition modeling (FDM) specifically, as a reliable alternative to traditional metal-cutting methods, like milling, turning and boring. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close