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
sql question
Access VBA - exporting a table into a text file of a different format
Is there a listing of United States zip codes that can be imported into a database
Does anyone know xls2csv and why it formats dates exactly 4 years and one day in the future? (also mathematical question)
Can I install Visual Studio 6.0 on Windows 7?
Activesync 4.5 gives support code 85010014
Exchange 2003 with 2 certificates
How do I remove the email header in Excel 2007
create table after eliminating record with duplicates on one column
Cast from type 'TimeSpan' to type 'String' is not valid.