I'm creating a database of congregants with their contact info and membership status. Eventually, my main form's controls will be read-only (to prevent accidental editing, etc), then I'll have a new form open up when I want to edit a particular person, like the example below:

Now, to open the new form, I've got that "Edit Contact Info" button pointing to this macro:
REM *****Open Contact Data Form*****
Sub OpenContactForm
Dim sNewDocumentName as string
sNewDocumentName="LBCN Membership Database Contact Form"
ThisDatabaseDocument.FormDocuments.getbyname(sNewDocumentName).open
End Sub
What I want to be able to do is have "LBCN Membership Database Contact Form" open to the particular record that is currently showing in the main form, "LBCN Membership Database Form". Right now, it always opens to the first record in the table, presumably because the macro isn't telling it to do any different. Is there some simple code I can add to my macro to force the new form to open at the currently displayed record?
P.S. I'm somewhat new to OpenOffice Base, and only have a basic understanding of programming macros, so you might just as well assume I won't know what you're talking about unless you spell it out for me.
