The function which give us the name looks like this:
........
long codes = atol(sta_code);
CString sta;
if (codes == 0)
return "";
CStatiiSet RstStatii;
RstStatii.m_strFilter.Format("CODSTA = %ld",codes);
if (!RstStatii.IsOpen()) //varianta pt. OpenTable (OLE)
RstStatii.Open(dbOpenSnapshot);
RstStatii.Requery();
sta=RstStatii.m_DENSTA;
RstStatii.Close();
return sta;
....
The user is admin on the machine. The mdb was removed and reinstalled. I could open the mdb and it was ok. Yesterday afternoon the app worked ok on the same long path. This morning it did not work. So, what can it be?