I have a listbox that is bound to a table (tblTransferDetail). The Primary Key is 'TransNum' (type INT) and the listbox is bound to this as the first column.
The double click event of the listbox (lstScannedItems) executes the below code:
CurrentDb.Execute "DELETE FROM tblTransferDetail WHERE TransNum = " & Me.lstScannedItems, dbSeeChanges
However, when I double click on a record in the listbox I keep receiving 'VBA Runtime error 3075' and the above line is highlighted.
Where am I going wrong?