P
pwml
Hi there,
I wrote an MFC app (VS 6.0) to try to open an Access database. The db is not
password protected and no ".mdw" file exists. I got an error ON and OFF:
"Cannot start your application. The workgroup information file is missing or
opened exclusively by another user." The thing is it doesn't happen all the
time.
Here is my connection string:
LPCTSTR lpszConnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\Access\MyWork.mdb;User ID=admin;Password=;"
m_pADOConnection->Mode = adModeShareDenyNone;
m_pADOConnection->CursorLocation = adUseClient;
m_pADOConnection->Open (_bstr_t (lpszConnection), _T(""), _T(""),
adConnectUnspecified);
m_pADOConnection->CommandTimeout = 0;
(m_pADOConnection is the pointer of _ConnectionPtr)
Thanks in advance for any help. - pwml
I wrote an MFC app (VS 6.0) to try to open an Access database. The db is not
password protected and no ".mdw" file exists. I got an error ON and OFF:
"Cannot start your application. The workgroup information file is missing or
opened exclusively by another user." The thing is it doesn't happen all the
time.
Here is my connection string:
LPCTSTR lpszConnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\Access\MyWork.mdb;User ID=admin;Password=;"
m_pADOConnection->Mode = adModeShareDenyNone;
m_pADOConnection->CursorLocation = adUseClient;
m_pADOConnection->Open (_bstr_t (lpszConnection), _T(""), _T(""),
adConnectUnspecified);
m_pADOConnection->CommandTimeout = 0;
(m_pADOConnection is the pointer of _ConnectionPtr)
Thanks in advance for any help. - pwml