WilliamMathias
Programmer
Hi,
I'm using the Jet oledb provider 4.0 (I've also tried with
oledb provider for ODBC) to open a read only ADO connection to excel from access, and read a data range from a worksheet.
Everything works fine, but if another user has the workbook open, I get an error saying the file has been opened exclusively, and that the connection cannot be opened.
I've set the conn.mode property to readonly
Everything works fine if the workbook is opened with sharing.
If I try to open the workbook as a normal excel user and another user has it open exclusive, then I'm given the option of viewing a read only version, so why not from ADO?
Any help will be much appreciated,
Cheers,
I'm using the Jet oledb provider 4.0 (I've also tried with
oledb provider for ODBC) to open a read only ADO connection to excel from access, and read a data range from a worksheet.
Everything works fine, but if another user has the workbook open, I get an error saying the file has been opened exclusively, and that the connection cannot be opened.
I've set the conn.mode property to readonly
Everything works fine if the workbook is opened with sharing.
If I try to open the workbook as a normal excel user and another user has it open exclusive, then I'm given the option of viewing a read only version, so why not from ADO?
Any help will be much appreciated,
Cheers,