CosmoKramer
Programmer
I have a query that returns records from a user entered date range. If I look at the records in the table that meet the criteria for 4/2001 there are 22. The following query only returns 21 if the user enters 04/01/2001 and 04/30/2001 as the beginning and ending dates:
SELECT PersonData.Location, PersonData.Reg_Initials, Format([Trans_Date],"mm/yyyy" AS Expr1
FROM PersonData
WHERE (((PersonData.Merged)=Yes) AND ((PersonData.Trans_Date) Between [Enter Beginning Date - mm/dd/yyyy] And [Enter Ending Date - mm/dd/yyyy]))
ORDER BY PersonData.Location, PersonData.Reg_Initials;
If they enter 04/01/2001 and 05/01/2001, they get the 22 records. What's strange is the query works fine with months that have 31 days.
Any ideas??
SELECT PersonData.Location, PersonData.Reg_Initials, Format([Trans_Date],"mm/yyyy" AS Expr1
FROM PersonData
WHERE (((PersonData.Merged)=Yes) AND ((PersonData.Trans_Date) Between [Enter Beginning Date - mm/dd/yyyy] And [Enter Ending Date - mm/dd/yyyy]))
ORDER BY PersonData.Location, PersonData.Reg_Initials;
If they enter 04/01/2001 and 05/01/2001, they get the 22 records. What's strange is the query works fine with months that have 31 days.
Any ideas??