Problem deleting a record

P

pvp

Guys,

Access 2000.

This code...

"

' 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 ? -
->


"

.... causes this error:

"
'DeleteRecord' isn't available now
"

What am I missing?

Many thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top