X
XP
I have the following function which normally returns TRUE if a file exists:
Public Function FileExists(argFullName As String) As Boolean
'RETURNS TRUE IF THE FILE EXISTS
FileExists = Len(Dir(argFullName)) > 0
End Function
However, I am trying to determine if any user is in a DB by checking for
existence of the .ldb file and the above function does not detect it.
Does anyone have a function that can determine if the .ldb file for a DB
exists, or whether any users are presently in a shared DB (opened for shared
mode)?
If you have a function that can do this, could you please post it? Thanks.
Public Function FileExists(argFullName As String) As Boolean
'RETURNS TRUE IF THE FILE EXISTS
FileExists = Len(Dir(argFullName)) > 0
End Function
However, I am trying to determine if any user is in a DB by checking for
existence of the .ldb file and the above function does not detect it.
Does anyone have a function that can determine if the .ldb file for a DB
exists, or whether any users are presently in a shared DB (opened for shared
mode)?
If you have a function that can do this, could you please post it? Thanks.