Thursday, May 27, 2010

Notes Button Changing the Mail server in Location document

Create a button in notes client & send it to users  to change the server name in the location document

Sub Click(Source As Button)

Dim db As New NotesDatabase(”",”names.nsf”)

Dim view As NotesView

Dim doc As NotesDocument

Dim doc1 As NotesDocument

Dim doc2 As NotesDocument

Dim doc3 As NotesDocument

Dim doc4 As NotesDocument

Set view = db.GetView(”Locations”)

Set doc = view.GetDocumentByKey(”Office”)

Messagebox “Your client will be set to use the Old Server server.”,64,”Change required”

Call doc.ReplaceItemValue(”MailServer”,”CN=New Server/O=???“)


Messagebox “Your Lotus Notes Client is now configured to use New Server as your Home Server.”,64,”Changes complete”

End Sub

No comments:

Post a Comment