N
Nikki Norris via AccessMonster.com
I have a main form with a subform on it. When I double click on a row in
the subform (datasheet) I want open another form which will bring up detail
records for the current record. My code is not working. Here is my code:
Private Sub Form_DblClick(Cancel As Integer)
If Not Me.NewRecord Then
DoCmd.OpenForm "frmEdit2", WhereCondition:="SSN=" & SSN
End If
End Sub
Does anyone know what I'm doing wrong?
Thanks,
Nikki
the subform (datasheet) I want open another form which will bring up detail
records for the current record. My code is not working. Here is my code:
Private Sub Form_DblClick(Cancel As Integer)
If Not Me.NewRecord Then
DoCmd.OpenForm "frmEdit2", WhereCondition:="SSN=" & SSN
End If
End Sub
Does anyone know what I'm doing wrong?
Thanks,
Nikki