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
Access, non-print a null field.
HELP, I fallen on a 'Runtime Error 3134 Syntax error in INSERT INTO statement' and i can't get up!
Microsoft Dynamics CRM 4.0
How can I add this Excel Sheet to Access (form) and make it work like Excel Sheet?
WinRAR & xp_cmdshell
NetBIOS
How To Recover Encrypted / Corrupted Word Documents
SQL DISTINCT Problem
Setup POP3 on Exchange 2007 / SBS 2008 Server
MSDTC Network Issue