I need to print a label for each item that I sold. For example, in my SalesDetail table, I have one record that I sold Quantity = 14 of item AAA and a 2nd record that I sold Quantity = 3 of item BBB. I need 14 records of item AAA Inserted to my Shipping Label table and I also need 3 records of item BBB Inserted as well. I have a datapage that can then print 17 beautiful labels. My trigger below works great on Update if I only Update one record at a time in Sales Detail. The problem is that I have 100s of records in Sales Detail and I "Bulk Edit" the records. The trigger below will either pick the 3 OR the 14 and then, for example, Insert 3 records of AAA and 3 records of BBB. Do I need to use the "For Each Record In" Loop? I added the TxnLineId which is unique to each record in SalesDetail but I still couldn't fix my problem. Help is always appreciated!
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
JohnNuttDesk
Hi Hi
I need to print a label for each item that I sold. For example, in my SalesDetail table, I have one record that I sold Quantity = 14 of item AAA and a 2nd record that I sold Quantity = 3 of item BBB. I need 14 records of item AAA Inserted to my Shipping Label table and I also need 3 records of item BBB Inserted as well. I have a datapage that can then print 17 beautiful labels. My trigger below works great on Update if I only Update one record at a time in Sales Detail. The problem is that I have 100s of records in Sales Detail and I "Bulk Edit" the records. The trigger below will either pick the 3 OR the 14 and then, for example, Insert 3 records of AAA and 3 records of BBB. Do I need to use the "For Each Record In" Loop? I added the TxnLineId which is unique to each record in SalesDetail but I still couldn't fix my problem. Help is always appreciated!
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.