Delete Selected item in a ListBox

Trinb37

Registered User.
Local time
Today, 15:50
Joined
Oct 9, 2003
Messages
23
Hi,
Is there anyone who can help me to modify this code so that it would delete a "Selecte Item" off a listbox.
Private Sub Command2_Click()
On Error GoTo Err_cmdDelete_Click
DoCmd.RunCommand acCmdDeleteRecord
Exit_cmdDelete_Click:
Exit Sub
Me.List0.Requery
Err_cmdDelete_Click:
MsgBox Err.Description
Resume Exit_cmdDelete_Click

End Sub

the code is deleting information from the table but not by order of selection. Thank
:confused:
James
 
Do you want the item just removed from the listbox? Or also from the table?
 
How do you delete it from the table?

Thanks.
 

Users who are viewing this thread

Back
Top Bottom