M
Martin
I have a continuous form that is set to allow Edits, Deletions and Adds. The
following statement in the On Current event procedure:
If Forms![EDIT-Phys Offices].NewRecord = True Then
[Confirm Add Record]
End If
This works fine except when I am deleting the last record. The add record
confirmation displays before the confirmation of the delete.
The only way I have found to get around this is to use the Afer Del Confirm
and Delete events to set or reset a flag and check that flag in the above IF
as in:
If Forms![EDIT-Phys Offices].NewRecord = True And DelFlag <> "Y" Then
[Confirm Add Record]
End If
Does anyone have a better suggestion? I prefer not to use the recordset
coding since I am not terribly comfortable with that.
Also, is there a way to move the cursor to the first record in this
continuous form?
Thanks.
following statement in the On Current event procedure:
If Forms![EDIT-Phys Offices].NewRecord = True Then
[Confirm Add Record]
End If
This works fine except when I am deleting the last record. The add record
confirmation displays before the confirmation of the delete.
The only way I have found to get around this is to use the Afer Del Confirm
and Delete events to set or reset a flag and check that flag in the above IF
as in:
If Forms![EDIT-Phys Offices].NewRecord = True And DelFlag <> "Y" Then
[Confirm Add Record]
End If
Does anyone have a better suggestion? I prefer not to use the recordset
coding since I am not terribly comfortable with that.
Also, is there a way to move the cursor to the first record in this
continuous form?
Thanks.