I have a pop-up form in Continuous Forms mode used to enter notes tied to the id field of my main form.
Two fields - notedate and status. Everytime I click in the blank field "status" another blank record always shows up underneath.
I have "notedate" set to auto fill when the focus is set to "status" and this is creating extra records in my table.
Is there a way to stop this from happening?
"Cycle" set to All Records - changed to Current Record with no difference.
Private Sub status_Click()
If IsNull([notedate]) Then
Me.notedate = date
Me.status.SetFocus
End If
End Sub
Private Sub Form_BeforeInsert(Cancel As Integer)
Me.negid = Forms!OpenContracts!negid
End Sub
Thanks,
Toni
Two fields - notedate and status. Everytime I click in the blank field "status" another blank record always shows up underneath.
I have "notedate" set to auto fill when the focus is set to "status" and this is creating extra records in my table.
Is there a way to stop this from happening?
"Cycle" set to All Records - changed to Current Record with no difference.
Private Sub status_Click()
If IsNull([notedate]) Then
Me.notedate = date
Me.status.SetFocus
End If
End Sub
Private Sub Form_BeforeInsert(Cancel As Integer)
Me.negid = Forms!OpenContracts!negid
End Sub
Thanks,
Toni