OpenDatabase Method Question

I’m using a lotus script behind a button that goes and opens a document in a different database based on a PO number the user has entered in a field above the button. What is the best way to load the key$ information with the PO # the user has just entered? I have tried several things but not yet successful.Thanks.

EXAMPLE:

Sub Click(Source As Button)

Dim workspace As New NotesUIWorkspace

Call workspace.OpenDatabase _

( “Algiers”, “new\plan”, “All by Category”, _

“PONumber”, False, False )

End Sub

Subject: Try:

Sub Click(Source As Button) Dim workspace As New NotesUIWorkspace

ponum = workspace.CurrentDocument.FieldGetText(“DataEntryField”)

Call workspace.OpenDatabase( “Algiers”, “new\plan”, “All by Category”, ponum, False, False )

End Sub

Subject: RE: Try:

Worked great. Thanks!