Hello
I want to delete a selection from a listbox. My wizard created this delete routine for me but I think it pertains to a textbox choice for deletion.
How can I modify it to delete a choice from a listbox box if I highlight the choice in the listbox to delete?
thanks for any help!
Duane
I want to delete a selection from a listbox. My wizard created this delete routine for me but I think it pertains to a textbox choice for deletion.
Code:
Private Sub cmdDeleteEmployee_Click()
On Error GoTo Err_cmdDeleteEmployee_Click
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
Exit_cmdDeleteEmployee_Click:
Exit Sub
Err_cmdDeleteEmployee_Click:
MsgBox Err.Description
Resume Exit_cmdDeleteEmployee_Click
End Sub
thanks for any help!
Duane