Copytodatabase method into an existing database

Hi Guys! How do we do this using lotusscript or formula language if possible?

Thank you.

Subject: Copytodatabase method into an existing database

Henry,

In what context?

An agent or a button on a form?

for example…

Dim archiveDb As New NotesDatabase( “”, “” )

Dim doc As NotesDocument

'…set value of archiveDb…

'…set value of doc…

If ( doc.Created < Datenumber( 1995, 8, 12 ) ) Then

Call doc.CopyToDatabase( archiveDb )

'You can use the call statement because the

'program does not need the return value

'(a handle to the new document)

Mike

Subject: RE: Copytodatabase method into an existing database

I’m planning to put the button on a view. Once clicked, the action will affect the selected document/s.

The selected document/s will be copied into an existing database. Not a new one.

Any suggestion?

Thank you.