Hi,I have an database that needs to check ‘if it’s connected to the network’.
I searched on the 6/7 forum, and found the suggestion to use, @DbExists.
At first, this was giving a TCPIP error, but I altered it to be inside an @IsError statement, like this:
Check:=@If(@IsError(@DbExists( “CountryCode-Servername/CountryCode-Region/Company/CompanyName” : “folder\subfolder\DatabaseName.nsf”));“Not Avalaible”;1);
FilePath:=@If(Check = 1;ServerPath;LocalPath);
This is OK; insofar as it does what I was expecting… HOWEVER it takes AGES and AGES, as it trys to search everywhere in notes for the database but it can’t because it’s not connected to the network.
The whole idea is that this application works when entirely disconnected (island), and we need a different path based on whether the user is connected, or not…