I am trying to create Buffet Coupons for our hotel Front Desk to distribute. The user would input the guest name, expiration date and number of coupons into a Access Database. I would like to multiply this single record with the number of coupons needed and insert it into another table. This is what I have so far in SQL:
INSERT INTO TableCouponList ( TrackingNo, Name, ExpirationDate )
SELECT TrackingNo, Name, ExpirationDate
FROM TableCoupons;
This statement only inserts one record into the new table. How can I modify it to insert the record multiple times (based upon a value in one of the fields)?
Thanks!
INSERT INTO TableCouponList ( TrackingNo, Name, ExpirationDate )
SELECT TrackingNo, Name, ExpirationDate
FROM TableCoupons;
This statement only inserts one record into the new table. How can I modify it to insert the record multiple times (based upon a value in one of the fields)?
Thanks!