BRH,
If I understand you correctly, once your initial search has resulted in your main form being open with a particular record, you want to be able to have a button open a second, different form linked to the primary key of the main form's record. (Presumably, this will populate a table on the 'many' side of a one-to-many relationship?)
I'm a little bit confused, though, about why your primary key and the foreign key have different names. These two fields contain the same values to link them in the relationship, right?
This code will open a new form using 'Lease#' for the key fields. You'll have to tweak a bit for the foreign key with the mismatched name.
- -
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmNewFormToOpen"
stLinkCriteria = "[Lease#]=" & "'" & Me![Lease#] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
- - - - - - -
Bryan