Microsoft
Software
Hardware
Network
Question : Find and Delete a record on another table
I need to delete a record on another table based on the selected line on a list box. The third column of the listbox will be used as critreria to search on the other table. The table to be opened is called "Customer_Products", the listbox is called lstCustItemNum, and the field on the third column on the list is called Cust_Product_ID.
Any help will be greatly appreciated as I am a newbie.
Answer : Find and Delete a record on another table
You can delete a record like this:
Currentdb.Execute "DELETE * FROM Customer_Products WHERE Cust_Prod_ID=" & Me.lstCustItemNo.Column(2)
Columns are zero-based, so Column(2) refers to the 3rd column
Random Solutions
List box in inputbox?
MVVM WPF: Binding Problems
SQL Sorting Issue
ISA 2000 Specified service does not exist as an installed service
Expr field in VFp9.0 report designer
Use old xbox360 controller on new xbox360
Conditional Format IF Expression
Single quotation in strVariable causes error 2147217900
Configure Report Server Error
datetime to ISOweek & ISOyear