D
DJTI via AccessMonster.com
Thank you in advance for help on this problem. I have an append query to
enter data into a table. The below sql statement is what I am using. I need
to edit the query to only append QCashPdValue into [Investment Details] if
the [PurchaseDate] of the Investment is before the beginning of year. If the
PurchaseDate is after the beginning of the year [QcashPdValue] is null.
Is this possible? Am I going about this wrong? Any help is greatly
appreciated.
INSERT INTO [Investment Details] ( CurShareValue, DateTransaction, QDivValue,
QCashPdValue, InvestmentID, PurchaseDate )
SELECT CurrentValuesTmp.CurShareValue, CurrentValuesTmp.DateTransaction,
CurrentValuesTmp.QDivValue, CurrentValuesTmp.QCashPdValue, Investment.
InvestmentID, Investment.PurchaseDate
FROM CurrentValuesTmp, Investment
WHERE (((Investment.InActive)=False));
enter data into a table. The below sql statement is what I am using. I need
to edit the query to only append QCashPdValue into [Investment Details] if
the [PurchaseDate] of the Investment is before the beginning of year. If the
PurchaseDate is after the beginning of the year [QcashPdValue] is null.
Is this possible? Am I going about this wrong? Any help is greatly
appreciated.
INSERT INTO [Investment Details] ( CurShareValue, DateTransaction, QDivValue,
QCashPdValue, InvestmentID, PurchaseDate )
SELECT CurrentValuesTmp.CurShareValue, CurrentValuesTmp.DateTransaction,
CurrentValuesTmp.QDivValue, CurrentValuesTmp.QCashPdValue, Investment.
InvestmentID, Investment.PurchaseDate
FROM CurrentValuesTmp, Investment
WHERE (((Investment.InActive)=False));