Ron,
I sure hope you can help me. I am stuck on a report for the db. I thought the
DateSerial function would work but now I see that the last quarters dates
will not be useful for my report.
I really need the previous date and total shares on each account. The dates
can be different for each account, depending on the activity. What I am
trying to do is run a report that displays
1. Last Date the shares were confirmed (usually end of quarter) and the
"TotalShares" amount.
2. then take the current Date and TotalShares and combine for TotalValue of
investment.
Here is the sql for the query:
SELECT [TransLedgersub].[InvDetailID], [TransLedgersub].[DateTransaction],
[TransLedgersub].[CurShareValue], [TransLedgersub].[QDivValue],
[TransLedgersub].[QCashPdValue], [TransLedgersub].[RedeembyShare],
[TransLedgersub].[TotalShares], [TransLedgersub].[CashPdTotal],
[TransLedgersub].[TotalValue], [TransLedgersub].[DivEarned], [TransLedgersub].
[RedeemedAmt], [ShareholderAccount].[ShareholderID], [ShareholderAccount].
[SLName], [ShareholderAccount].[ShareholderName], [ShareholderAccount].
[Address], [ShareholderAccount].[Address2], [ShareholderAccount].[City],
[ShareholderAccount].[State], [ShareholderAccount].[Country],
[ShareholderAccount].[PostalCode], [ShareholderAccount].[BrokerID],
[Investment].[InvestmentID], [Investment].[PurchaseDate], [Investment].
[InvestmentAmt], DateSerial(Year(Date()),3*DatePart("q",Date())-2,0) AS
DateTransactionLast
FROM [ShareholderAccount] INNER JOIN (Investment INNER JOIN TransLedgersub ON
[Investment].[InvestmentID]=[TransLedgersub].[InvestmentID]) ON
[ShareholderAccount].[ShareholderID]=[Investment].[ShareholderID]
ORDER BY [TransLedgersub].[DateTransaction] DESC , [ShareholderAccount].
[SLName];
If I have not provided you with enough information to help me, let me know
what else is needed.
Thanks again,
Deb
I am not sure how you are using this to get a range or specify a range
but
[quoted text clipped - 9 lines]