How to check opened XLS file?

Hi, I'm working with excel file (read and write) using ODBC. But when the file is opened by Excel at the time any rows cound't be readed. So I tried to check lock of file using _access function but the file doesn't seems to be locked by Excel (function return 0)
Do you know how to test that the XLS file is opened by Excel? Or how to read and write all rows even so the file is opened?

Thanks, Alex.
[430 byte] By [AlexEg] at [2007-11-18 2:14:45]