P
pvp
Access 2002.
I have the follwoing code in a form based on a table:
"
' permit deletion just long enuf to delete then
cancel it again
Me.AllowDeletions = True
'<-- in DELETE state: add n edit n del y 116 ? -->
Application.RunCommand acCmdDeleteRecord
Me.AllowDeletions = False
'<-- in READONLY state: add n edit n del n 116 ? -
->
"
....works OK (record IS deleted) but then I get:
"you can't go to this record"
Any ideas?
Thanks.
I have the follwoing code in a form based on a table:
"
' permit deletion just long enuf to delete then
cancel it again
Me.AllowDeletions = True
'<-- in DELETE state: add n edit n del y 116 ? -->
Application.RunCommand acCmdDeleteRecord
Me.AllowDeletions = False
'<-- in READONLY state: add n edit n del n 116 ? -
->
"
....works OK (record IS deleted) but then I get:
"you can't go to this record"
Any ideas?
Thanks.