LeanneGodney
Technical User
Hi there,
I am trying to open up a database document for a user to edit, but I'm battling to get workspace and editdocument to work. When I try to use the EditDocument method I get an error of Runtime 7419 - Incorrect Argument type: object expected.
I can't seem to use dim Workspace as new NotesUIWorkspace - it doesn't allow the work new, so I haven't declared it and ahve simply used it as an object.
Any ideas on how to open this document for the user to review/edit? this is my code:
Set DomSession = CreateObject("Lotus.NotesSession")
DomSession.Initialize MyPassword
Set DomDir = DomSession.GetDatabase("0BMT00NA02/CHASE", "apps\cpcolt.nsf")
Set DomContacts = DomDir.GetView("Admin\All By Status")
Set DomDoc = DomDir.GetDocumentByUNID("1E051FF601BE882280256FA1001D329D")
Set Workspace = CreateObject("Notes.NotesUIWorkspace")
Workspace.EDITDOCUMENT False, DomDoc
I am trying to open up a database document for a user to edit, but I'm battling to get workspace and editdocument to work. When I try to use the EditDocument method I get an error of Runtime 7419 - Incorrect Argument type: object expected.
I can't seem to use dim Workspace as new NotesUIWorkspace - it doesn't allow the work new, so I haven't declared it and ahve simply used it as an object.
Any ideas on how to open this document for the user to review/edit? this is my code:
Set DomSession = CreateObject("Lotus.NotesSession")
DomSession.Initialize MyPassword
Set DomDir = DomSession.GetDatabase("0BMT00NA02/CHASE", "apps\cpcolt.nsf")
Set DomContacts = DomDir.GetView("Admin\All By Status")
Set DomDoc = DomDir.GetDocumentByUNID("1E051FF601BE882280256FA1001D329D")
Set Workspace = CreateObject("Notes.NotesUIWorkspace")
Workspace.EDITDOCUMENT False, DomDoc