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
Dynamic and Static Resources in Silverlight
Is it possible to create a "Quick Find" button in Excel? (I need to make searching idiot proof.)
How do I check if a table exists, before creating the table...
Deny Ability to open additional mailboxes in Outlook
Illegal operation attempted on a registry key that has been marked for deletion
Word cannot start the converter mswrd632.wpc
Software to recover an overwritten Excel file
Need to create an AR Aging Query
Priniting report causes error "2212 couldn't print object"
How do I copy files with their ACLs to another file server in a different AD forest?