Between dates

deanvilar

Registered User.
Local time
Today, 06:44
Joined
Mar 27, 2013
Messages
63
Hello Gurus ... what seems to be the problem of my SQL query? thanks in advance.

SELECT *
FROM XFEMainTable
WHERE (XFEMainTable.memEndDate BETWEEN forms!PERSONNELINFO_PRINTMODULE!txtFromDate And forms!PERSONNELINFO_PRINTMODULE!txtToDate)
ORDER BY XFEMainTable.memNo;
 
You have to tell us what the problem is. What is happening, what is not happening, what is given as a result or what is not given as a result?
 
Hello Paul ... it returns all the data in the table .. it does not filter the dates as BETWEEN ..
 
Did you get an error message? Is your Form open-- it must be open and valued to get proper substitution in your SQL. More info please.
 
no error messages ... it just returns all the data in the table ...
 
That's peculiar! I believe the dates returned from txtFromDate and txtToDate are the minimum and max dates in your table. And it's possible that those dates are misinterpreted.

By the way, that's a pretty clear pic in your profile.
 
Most people put avatars.
Have you checked the values returned by those textboxes?
 
am trying to give a check once more ... I think people here should open up a bit .. =D
 
open up in a different way =)
btw STUPID ME ... I made the field of the dates as TEXT damn! thanks for your replies .. now its ok =D
 

Users who are viewing this thread

Back
Top Bottom