Hi William,
Okay, the SQL statement looks correct. By chance, are you entering and
displaying your dates with four-digit years? Another possibility to look
into is adding a format statement around the parameters:
WHERE
(Master.[Ser Exp])>=Format([Enter the First Date], "mm\/dd\/yyyy")
AND
(Master.[Ser Exp])<=Format([Enter Second Date], "mm\/dd\/yyyy")
See Access MVP Allen Browne's article for more information:
International Dates in Access
http://allenbrowne.com/ser-36.html
If you still cannot get it to sort correctly, then I invite you to send me a
copy of your compacted and zipped database. If need be, you can sanitize the
data, but you should have a query that demonstrates the problem. If you'd
like to take me up on this offer, my e-mail address is available at the
bottom of the contributor's page indicated in my signature. Whatever you
decide, please do not post your e-mail address (or mine) to a newsgroup
reply. Doing so will only attract the unwanted attention of spammers.
Tom Wickerath
Microsoft Access MVP
http://www.access.qbuilt.com/html/expert_contributors.html
http://www.access.qbuilt.com/html/search.html
__________________________________________
William5271 said:
I checked and it was date and time. Here is the SQL data
SELECT Master.[Ser Exp], Master.Last, Master.First, Master.Address,
Master.City, Master.State, Master.Zip
FROM Master
WHERE (((Master.[Ser Exp])>=[Enter the First Date] And (Master.[Ser
Exp])<=[Enter Second Date]))
ORDER BY Master.[Ser Exp], Master.Last, Master.First;