B
Bonnie
Hi,
I'm still struggling with this. Please help! I am
opening a subfrom from the main form with this code (when
they key "Y"):
Private Sub Text107_Exit(Cancel As Integer)
Dim VarAuto As Variant
DoCmd.RunCommand acCmdSaveRecord
VarAuto = Me![autonum]
If Me![Text107] = "Y" Then
DoCmd.OpenForm "codef", acNormal, "", "codef!
[autonum]= '" & Forms!Liens!autonum & "'"
End If
End Sub
The problem is, it always saves to a new record - I want
the same record as the main Form. That's what I am
trying to do with the autonum filter. I am only using
one table - not relational. Tried it several different
ways and it doesn't work. Can you help me please?
I'm still struggling with this. Please help! I am
opening a subfrom from the main form with this code (when
they key "Y"):
Private Sub Text107_Exit(Cancel As Integer)
Dim VarAuto As Variant
DoCmd.RunCommand acCmdSaveRecord
VarAuto = Me![autonum]
If Me![Text107] = "Y" Then
DoCmd.OpenForm "codef", acNormal, "", "codef!
[autonum]= '" & Forms!Liens!autonum & "'"
End If
End Sub
The problem is, it always saves to a new record - I want
the same record as the main Form. That's what I am
trying to do with the autonum filter. I am only using
one table - not relational. Tried it several different
ways and it doesn't work. Can you help me please?