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
James
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

James