Public Function IsLocked(ByVal strFile As String) On Error GoTo hErr Dim strLockFile As String strLockFile = Left(strFile, Len(strFile) – 4) & “.LDB” ‘Call FileDelete(strLockFile) If CBool(Len(Dir$(strLockFile))) Then IsLocked = True Else IsLocked = False End If Exit Function hErr: Select Case MsgBox(“Error ” & Err.Number & “: ” & Err.Description & vbCrLf & _ “in [...]

