GoodLife22
Registered User.
- Local time
- Today, 07:12
- Joined
- Mar 4, 2010
- Messages
- 86
Good morning everyone. I need some help PLEASE.
I have a front end Access 2000 DB and Backend SQL 2005.
My Form Prompts my user to enter company name and a start and finish date.
Then my query will run using information entered into that form. To spit out a dataset.
Query
The problem with this code is it leaves off the last date everytime due to the time stamp. So if I select my company then add the first date of 1/1/201 and last data of 5/5/2010 I will get everything from 1/1/2010 - 5/4/2010.
Now if I add +1 to the end of my criteria it will give me 1/1/2010 - 5/7/2010. It gives it more than one day from some reason.
Then if I try to change the format on my [TestDate] field at the query level it gives me no results at all.
What I am doing wrong here?
I have a front end Access 2000 DB and Backend SQL 2005.
My Form Prompts my user to enter company name and a start and finish date.
Then my query will run using information entered into that form. To spit out a dataset.
Query
Code:
SELECT C.CompName, C.TestDate
FROM tbl_RECORDS AS C
WHERE (((C.CompName)=[FORMS]![frm_STAT_DATA_COMP_DIALOG]![CompName]) AND ((C.TestDate)>=[FORMS]![frm_STAT_DATA_COMP_DIALOG]![Beginning Date] And (C.TestDate)<[FORMS]![frm_STAT_DATA_COMP_DIALOG]![End Date]));
Now if I add +1 to the end of my criteria it will give me 1/1/2010 - 5/7/2010. It gives it more than one day from some reason.
Then if I try to change the format on my [TestDate] field at the query level it gives me no results at all.
What I am doing wrong here?