Error: database hasnt been opened yet.
Posted on 2001-09-05
My problem is the following.
I want to create a database out of a template file. because i have to create like 20 databases i have written a little program.
But i get the message
"database databasename hasn't been openened yet"
I have tried template.Open("","Templates/" + doc.Template(0))
But this didn't solve it.
How can i make it work.
I have used the following code:
Dim template As New NotesDatabase( "", "Templates/" + doc.Template(0))
Dim brandNewDb As NotesDatabase
Set brandNewDb = template.CreateFromTemplate( Server, Map +"/" + doc.Database(0), True )
brandNewDb.Title = doc.Titel(0)
Thank you very much