Error 70 - Permission Denied

  • Thread starter Thread starter Bob Barnes
  • Start date Start date
B

Bob Barnes

FileNum = FreeFile()
N = "C:\SelfAud\ROMStL.mdb"
Open "C:\SelfAud\ROMStL.mdb" For Input As #FileNum
FileLength = LOF(FileNum)

The above code snippet has run successfully for several years. Now, when..
Open "C:\SelfAud\ROMStL.mdb" For Input As #FileNum
...runs..it goes to Error 70.

Ideas? TIA - Bob
 
Bob,
my only experience with 'Permission Denied' was when I had the database set
up in an incorrect folder and drive on a large corporate system.
Installing the database in a different folder - which I assume was the
folder I should have used in the first place - fixed the problem.
By the way - I was trying to export to excel.


Jeanette Cunningham -- Melbourne Victoria Australia
 
This does not answer your question, but do what you want easily, without
open the database file for file size:

Dim fileSize as long
fileSize=FileLength("C:\....\filename.mdb")
 
Works great..Since 1999..until now.
FileNum = FreeFile()
N = "C:\Bob\ABC.mdb"
Open "C:\Bob\ABC.mdb" For Input As #FileNum
FileLength = LOF(FileNum)
Close #FileNum
lblShowSize.Caption = "Front-end = " & Format(FileLength, "##,##") & " Bytes."
 

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

Back
Top