replica they are opening, it seems many are still confused by the bookmarks in
R5. Many users click blindly on their bookmarks without noticing that they are
accidentally using the Local rather than the server copy of a database, which
leads to all sorts of support problems and questions.
As a helpful reminder to the end-user I have written the following script which
does its best to ensure that the user is not opening a local copy of the
database while they are connected to a server.
As I haven't found a way to actually discern which location document is
currently in use, the script instead checks to see which replica of the users
mail database is currently active - the local or server copy.
Place the following in the Database Script PostOpen event.
Sub Postopen(Source As Notesuidatabase)
Dim db As NotesDatabase
Dim vMail As Variant
Dim sMsg As String
'Course DB is local and Location is not local
If db.Server="" And vMail(0)<>"" Then
sMsg="WARNING: You are using a local copy of this database! "
sMsg=sMsg & "You may not see the most recent data. " & Chr$(13) & Chr$(13)
sMsg=sMsg & "To prevent this problem in the future, you must modify your
bookmark to open the correct replica."
Messagebox sMsg,64,"Notes Database"