-----Original Message-----
I lived in and around Auckland for two years, love your
sense of humor on the code. Here is the code generated by
Noah's wizard:
Private Sub DeleteThis_Click()
On Error GOTO Err-DeleteThis_Click
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
Exit_DeleteThis_Click:
Exit Sub
Err_DeleteThis_Click:
MsgBox err.Description
Resume Exit_DeleteThis_Click
End Sub
The RecordSource is a table "tblStorageItems"
I guess I just assumed that anytime someone used the
wizard it generated the same code so everyone knew the
code generated. I apologize for not submitting it
previously. I can't find in any of my several books, or
the help menu, anything about the DoMenuItem, the
acFormBar, the acEditMenu, the acMenuVer70, etc. Is there
a good reference that shows all the posssible commands and
properties, etc that are available in Access 2002?
Thanks again Graham.
-----Original Message-----
Hi Dave
I have no idea what code the wizard produced for you,
but
it was probably
written by Noah in the Ark.
Try this:
DoCmd.RunCommand acCmdDeleteRecord
--
Good Luck!
Graham Mandeno [Access MVP]
Auckland, New Zealand
I want to delete the current record in a form. I have
created a command button with the wizard and selected
record operations and delete record.
When I try to delete the current record it deletes but
gives me a message box "Property not Available". I have
to click OK to finish, then the deleted record still shows
in the combo box.
Any ideas what I could have done wrong or not right?
.
.