Can we use Replica id in databasefilename of pickliststring or picklistcollection?

Hi All,The pickliststring and picklistcollection both use databasefilename to select the database name the view located.

Instead of using database file name, can we use replica id to replace it? I tried it, it seems we can not use it to replace the database file name.

thanks a lot for any help,

Subject: Can we use Replica id in databasefilename of pickliststring or picklistcollection?

You could use db.OpenByReplicaID to test the servers by order of where you would prefer them to use this - local, notes1, notes2, notes3, etc - and provide a messagebox if all the servers fail in opening the database.

If it is able to open one, assign the server to a string and the database path to a string and use it for the PickListStrings code.

Hope that helps!

  • David