kbsudhir
06-30-2009, 06:47 AM
Hi All,
I have created the below query to search all the record having entered criteria in the phrase in the complete table.
SELECT Assigned.Subject, Assigned.ReceivedDateTime, Assigned.ChangedSLADeadLine
FROM Assigned
WHERE (((Assigned.Subject) Like "*" & [Enter Criteria] & "*"));
This query is working fine.
Now I also want that the user should be able to enter the date for which the search should be conducted hence I can narrow down the search to that particular date.
Below is the query which I created.
SELECT Assigned.Subject, Assigned.ReceivedDateTime, Assigned.ChangedSLADeadLine
FROM Assigned
WHERE (((Assigned.Subject) Like "*" & [Enter Criteria] & "*") AND ((Int([ReceivedDateTime]))=[Enter Date]));
But now my query is not pulling any data but the data is available for that particular date as per the criteria entered in the first query.
If I create a query to pull the data for teh date enterd by the user then the queri is working fine.
But when I create a query by merging two parameters one is first one & the second is date then queri is not working.
Please guide.
Regards
Sudhir
I have created the below query to search all the record having entered criteria in the phrase in the complete table.
SELECT Assigned.Subject, Assigned.ReceivedDateTime, Assigned.ChangedSLADeadLine
FROM Assigned
WHERE (((Assigned.Subject) Like "*" & [Enter Criteria] & "*"));
This query is working fine.
Now I also want that the user should be able to enter the date for which the search should be conducted hence I can narrow down the search to that particular date.
Below is the query which I created.
SELECT Assigned.Subject, Assigned.ReceivedDateTime, Assigned.ChangedSLADeadLine
FROM Assigned
WHERE (((Assigned.Subject) Like "*" & [Enter Criteria] & "*") AND ((Int([ReceivedDateTime]))=[Enter Date]));
But now my query is not pulling any data but the data is available for that particular date as per the criteria entered in the first query.
If I create a query to pull the data for teh date enterd by the user then the queri is working fine.
But when I create a query by merging two parameters one is first one & the second is date then queri is not working.
Please guide.
Regards
Sudhir