Run-time error ‘2105’

Trevor Howard

Registered User.
Local time
Today, 00:18
Joined
Aug 29, 2002
Messages
64
I have the following code on my “On Open” command, this all runs fine. I have noticed if I back up on CD, then open any forms with the code below (in read only), I get “Run-time error ‘2105’ You can’t go to the specified record”

“On Open” command
`maximize form`
DoCmd.Maximize

`open form on new record`
DoCmd.GoToRecord , , acNewRec
End Sub

I would like to know if this is a potential problem, my db runs fine in normal operation.

Just checking
;)
 
This is not a problem with your db, it is your storage media, trying to add data to read only file is impossible. When you say potential problem what do you mean?
 
Hello Ian
Yes it cant be changed, I was just checking, if I needed to restore from a cd, that I would not have any dificulty. If this is normal than thats fine.

Thanks
 
Any file copied to a CDR automatically has it file attribute set to read-only. This is not a problem as long as you ensure you change it back again before trying to add edit or update records.

I hear on the grapevine that Windows XP does this automatically for all files copied from a CD. Groovy. My Spectrum 128 might just have managed to get the CD drawer open on it's own :)
 

Users who are viewing this thread

Back
Top Bottom