Three PCs manage data held on a server. They each have a front-end mdb
file linked to tables on the server and on each PC.
A problem has arisen over the following line of code.
DoCmd.OutputTo acOutputTable, "tblMarriageLic ence", acFormatRTF, strRTFFolder & "\Marlicm.r tf", False
The linked table has just been updated and is held in another MDB file
on the local PC. The target folder is on the local PC. As you can see,
the file name is always the same, so the existing file is being
overwritten. This line of code has worked in numerous locations and in
this particular one without ever failing until all three PCs in this
location start getting error messages last Friday!
Error 2303 - Cannot save output data to the file you selected.
Error 2308 - File already exists, Marlicm.rtf
One assumes a locking problem. There should be no question of rights or
permissions as all the files affected are on each local PC. After the
error, it is impossible to delete the RTF file "in use by another
user". Close Access and it can be deleted.
The procedure now works - ONE TIME - the file was not there to be
overwritten.
I am not aware of any change having been made. The front-end
application mdbs were updated on the Tuesday and everything worked fine
as usual until the Friday.
What is very strange, is that another routine in the same form module,
using exactly the same line of code, but with another file name -
same location of files overwriting the RTF file - still works. That
RTF file was copied and renamed as the problem file, but the same error
occurred.
Another form module has the same problem.
Can anyone point to a solution - other than deleting the RFT file
before running the code - which is really ham-fisted?
Thanks