Hi everyone,
I have searched for a solution to what seems to be a simple task I would like to perform and have found similar items but am having trouble understanding. I even tried to copy the code used in one of the V10 videos for doing this for a single record but got errors I didn't understand. Although I am fairly technical and have used Access extensively many years ago and written a little VB code, I don't know Javascript or SQL and just cannot get this to work.
I have 2 tables displayed as linked via a field called Product_ID
PRODUCTS which contains the entire inventory
SPECIALS which is initially empty
I want to allow the user to select several records in the PRODUCTS grid using the checkbox column (got that working) and click a button in the Parent Grid Toolbar called "AddSpecials" that will add a new record to SPECIALS for each checked item.
Data fields to be copied to the Specials table for each checked record are: Product_ID, Brand, Product (and then the user will fill in the sale price and other details in the Specials grid) I would also like to display a message after each "add" indicating the number of items that were added (or an error message if none were added).
Can anyone give me some sample code I can use on the Action button to make this happen? I would be eternally grateful. So far I am loving Alpha5 and I think this is the most complicated thing I am going to need to do.
thanks in advance
I have searched for a solution to what seems to be a simple task I would like to perform and have found similar items but am having trouble understanding. I even tried to copy the code used in one of the V10 videos for doing this for a single record but got errors I didn't understand. Although I am fairly technical and have used Access extensively many years ago and written a little VB code, I don't know Javascript or SQL and just cannot get this to work.
I have 2 tables displayed as linked via a field called Product_ID
PRODUCTS which contains the entire inventory
SPECIALS which is initially empty
I want to allow the user to select several records in the PRODUCTS grid using the checkbox column (got that working) and click a button in the Parent Grid Toolbar called "AddSpecials" that will add a new record to SPECIALS for each checked item.
Data fields to be copied to the Specials table for each checked record are: Product_ID, Brand, Product (and then the user will fill in the sale price and other details in the Specials grid) I would also like to display a message after each "add" indicating the number of items that were added (or an error message if none were added).
Can anyone give me some sample code I can use on the Action button to make this happen? I would be eternally grateful. So far I am loving Alpha5 and I think this is the most complicated thing I am going to need to do.
thanks in advance
Comment