Len Boorman
Back in gainfull employme
- Local time
- Today, 23:09
- Joined
- Mar 23, 2000
- Messages
- 1,930
I have a database that I originally wrote whilst employed. That employer has now asked me to do some mods which is nice even after 4 years
The database was on a netwrok and to do the mods I have taken a copy and am working at home. No real problems until I tried to export some data to excel
Code as below
Dim stDocName1
stDocName1 = "tbl_Data_Set_01"
DoCmd.TransferSpreadsheet [acExport], , stDocName1, "J:Archive\Access Applications\Defects\Defect_Docket_xl_Outputs\Bad Goods.xlsx", 0
Now I have used this code before and it works but this time I am getting an error message
Run time error 3027
Cannot update Database or Object is read only.
Now I have ferreted about a bit and found
I can add records to database so database cannot be read only. I have repeatedly recreated the table referred to in the code with no problem
Th destination folder "appears" to be read only according to its properties but I have added files to this folder manually without a problem and it appears that the "read only" indicator is a bit of a red herring
Any thoughts as to why the problem exists and how to cure will be appreciated
Thanks
Len B
The database was on a netwrok and to do the mods I have taken a copy and am working at home. No real problems until I tried to export some data to excel
Code as below
Dim stDocName1
stDocName1 = "tbl_Data_Set_01"
DoCmd.TransferSpreadsheet [acExport], , stDocName1, "J:Archive\Access Applications\Defects\Defect_Docket_xl_Outputs\Bad Goods.xlsx", 0
Now I have used this code before and it works but this time I am getting an error message
Run time error 3027
Cannot update Database or Object is read only.
Now I have ferreted about a bit and found
I can add records to database so database cannot be read only. I have repeatedly recreated the table referred to in the code with no problem
Th destination folder "appears" to be read only according to its properties but I have added files to this folder manually without a problem and it appears that the "read only" indicator is a bit of a red herring
Any thoughts as to why the problem exists and how to cure will be appreciated
Thanks
Len B