M
Mike D
I want to Append data from an existing table ( Safety supply transactions)
into a YTD table ( SUPPLIES USAGE YEAR TO DATE) including only new records
based new records added to Safety supply transactions based on the date.
Below is the SQL view of what I have set up.
INSERT INTO [SUPPLIES USAGE YEAR TO DATE] ( UPUPRF, [DATE], [Productpart#],
ProductDescription, Catagory, DEPT, UPTEXT1, UnitPrice, Quanity )
SELECT [Safety supply transactions].UPUPRF, [Safety supply
transactions].DATE, Products.[Productpart#], Products.ProductDescription,
Products.Catagory, [USERS QGPL].DEPT, [USERS QGPL].UPTEXT1,
Products.UnitPrice, [Safety supply transactions].Quanity
FROM ([Safety supply transactions] INNER JOIN Products ON [Safety supply
transactions].[Product Id #] = Products.[Product Id #]) INNER JOIN [USERS
QGPL] ON [Safety supply transactions].UPUPRF = [USERS QGPL].UPUPRF
ORDER BY [Safety supply transactions].DATE;
into a YTD table ( SUPPLIES USAGE YEAR TO DATE) including only new records
based new records added to Safety supply transactions based on the date.
Below is the SQL view of what I have set up.
INSERT INTO [SUPPLIES USAGE YEAR TO DATE] ( UPUPRF, [DATE], [Productpart#],
ProductDescription, Catagory, DEPT, UPTEXT1, UnitPrice, Quanity )
SELECT [Safety supply transactions].UPUPRF, [Safety supply
transactions].DATE, Products.[Productpart#], Products.ProductDescription,
Products.Catagory, [USERS QGPL].DEPT, [USERS QGPL].UPTEXT1,
Products.UnitPrice, [Safety supply transactions].Quanity
FROM ([Safety supply transactions] INNER JOIN Products ON [Safety supply
transactions].[Product Id #] = Products.[Product Id #]) INNER JOIN [USERS
QGPL] ON [Safety supply transactions].UPUPRF = [USERS QGPL].UPUPRF
ORDER BY [Safety supply transactions].DATE;