woodman650
Always confused.
- Local time
- Yesterday, 19:46
- Joined
- Jan 22, 2005
- Messages
- 55
Hey all,
I'm trying to delete a record in a table by selecting a value in a list box and hitting a command button to delete the associated record. Here is what I am using:
However, nothing happens. the record isn't deleted, I get no errors... nothing. Any ideas why this may not be working with the listbox? thanks in advance! =)
I'm trying to delete a record in a table by selecting a value in a list box and hitting a command button to delete the associated record. Here is what I am using:
Code:
Private Sub DeleteMovie_Click()
CurrentDb.Execute "Delete from " & _
"tblFinance " & _
"where TransactionID = """ & Me.TransList & """", dbFailOnError
Me.Requery
Me.TransList.Requery
Me.TransList = ""
End Sub
However, nothing happens. the record isn't deleted, I get no errors... nothing. Any ideas why this may not be working with the listbox? thanks in advance! =)