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=???“)

Call doc.save(False,True)

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

End Sub

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s