If Len(Dir("w:\RIPGP\DataBase\*" ХХХ "*")) <> 0 Then....
If Len(Dir("w:\RIPGP\DataBase\*" ХХХ "*")) <> 0 Then cnt=1 Do Until Len(Dir()) = 0 cnt=cnt+1 Loop Else cnt=0 End If
Dir()