I need to open a form to edit and add records. I would like my form to show the data linked to current record field "LeaseID." The form currently opens on the last viewed record. Here is my code:
Thank you.
Hefly
Code:
Option Compare Database
Private Sub Command189_Click()
End Sub
Private Sub Combo191_DblClick(Cancel As Integer)
'Event ON DOUBLECLICK
If IsNull(LessorID) Then
DoCmd.OpenForm "frmLessors"
Else
DoCmd.OpenForm "frmLessors", , , , , , LessorID
End If
End Sub
Thank you.
Hefly