Hallo Bernhard
hier der ganze Code, den Servernamen habe ich vorläufig noch fix angegeben
Sub Click(Source As Button)
Dim s As New NotesSession
Dim doc As NotesDocument
Dim db As Variant
Set ws = New NotesUIWorkspace
Set doc = ws.currentdocument.document
Dim db1 As NotesDatabase
db = ws.Prompt(13, "Please choose the Invoice DB", "1")
fileName$ = db(1)
fileName1$ = db(2)
Set db1 = s.GetDatabase("Servername", fileName$, False)
doc.DBName = fileName1$
doc.DBReplicaID = fileName$
doc.DBReplicaID_1 = db1.ReplicaID
End Sub
Christine