Hi everyone!
Today I have faced a weird behaviour while trying to use the DAO opendatabase method with a UNC path pointing to an external database.
Using the opendatabase method to open a database in exclusive mode fails when using a UNC path, as it opens the database not as exclusive, but read-only mode.
VBA code: Set dbx = opendatabase("\\server\shareName\dbname", True)
When using local paths this method works, opening the database as exclusive (not read-only)
VBA code: Set dbx = opendatabase("X:\dbname", True)
Anyone has faced this behaviour before? Am I doing something wrong?
Thanks in advance for your help!!
Today I have faced a weird behaviour while trying to use the DAO opendatabase method with a UNC path pointing to an external database.
Using the opendatabase method to open a database in exclusive mode fails when using a UNC path, as it opens the database not as exclusive, but read-only mode.
VBA code: Set dbx = opendatabase("\\server\shareName\dbname", True)
When using local paths this method works, opening the database as exclusive (not read-only)
VBA code: Set dbx = opendatabase("X:\dbname", True)
Anyone has faced this behaviour before? Am I doing something wrong?
Thanks in advance for your help!!