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
Want to open form when file opens, but getting file/access error 75 message
Best way to push out printers to domain users?
Getting Microsoft.Win32.RegistryKe<wbr />y from PROFILEINFO.hProfile - from PInvoke to .Net
VS2008 opens .aspx files in new IE window instead of Designer/Source Editor
Problem with "like" keyword, when database is in chinese
active directory, W2k8 R2 DC, Kerberos failures, Event ID: 3, 4771, 4769, 4768, 4776, 4625 source: Microsoft Windows security
Access Pivot chart - need different scales on right and left axis
RUNDLL error message "jyku.fjo" on computer start up
Same form on different computers
Textboxes in other Tabs in asp.net