Solved Filtering Query between 2 date

theinviter

Registered User.
Local time
Today, 12:54
Joined
Aug 14, 2014
Messages
273
Dear Guys,
Need help

i have q query having a date range
1- Date_From
2- Date_To

so wanna show the record from current date which are present between both date.
 
SELECT DISTINCTROW Accounts.AccountNumber, Accounts.AccountName, Sum(Transactions.[DEBIT AMOUNT]) AS DEBIT, Sum(Transactions.[CREDIT AMOUNT]) AS CREDIT
FROM Accounts LEFT JOIN Transactions ON Accounts.AccountID = Transactions.AccountID
WHERE (((Transactions.TransactionDate)>=[forms]![Report Date Range]![Beginning Rpt Date] And (Transactions.TransactionDate)<=[Forms]![Report Date Range]![Ending Rpt Date]))
 
I generally use the BETWEEN keyword for two dates in a query?
 

Users who are viewing this thread

Back
Top Bottom