Hello all. I'm new to this forum. I'm learning Access 2010 "by fire", having been hired through an office staff temp agency to develop an Access application.
I have a form with 2 combo boxes where the user selects first a company, then a store location within that company. From there they can generate reports for the specific stores.
They have requested that they also have a button that will allow them to delete all product information for a particular store, so they assure that the quantities for all products are zeroed out.
The reason they want to completely remove all records for a store, instead of setting case quantities to zero, is that they will be importing the new information from an Excel spreadsheet and want to be assured that when Access finds a matching record, that it doesn't just skip over the import of the new quantities (essentially meaning that there would be no products in the store).
I've created a delete query:
Code:
DELETE tblStoreProducts.StoreProductKey, tblStoreProducts.UPC, tblStoreProducts.StoreKey, tblStoreProducts.Cases, tblStoreProducts.Storage, tblStoreProducts.Use, tblStoreProducts.AnnualWaste, tblStoreProducts.ProductKey
FROM tblStoreProducts
WHERE (((tblStoreProducts.StoreProductKey)=[Forms]![frmChooseStore]![cboStore]));
My problem is that Access won't let me create an event that calls this query.
Any suggestions?
Marcie Fessler