Thank you so much for responding. I don't thinik I am arranging this statement correctly. Here is what I am workikng with.
[SQL CODE]
SELECT log_table.log_id AS ID, log_table.enter_date AS [Enter Date], log_table.enter_time AS [Enter Time]
FROM log_table
WHERE (((log_table.enter_date) Between [Forms]![criteria_export_trouble_tkt_records_dialog]![BeginDate] And [Forms]![criteria_export_trouble_tkt_records_dialog]![EndDate]) AND ((log_table.fsd_project)="Growth"))
ORDER BY log_table.enter_date, log_table.enter_time;
Why using 2 fields (enter_date, enter_time) for storing a single DateTime value ?
Anyway, you wanted something like this ?
PARAMETERS [Forms]![criteria_export_trouble_tkt_records_dialog]![BeginDate] DateTime
, [Forms]![criteria_export_trouble_tkt_records_dialog]![EndDate] DateTime;
SELECT log_id AS ID, enter_date AS [Enter Date], enter_time AS [Enter Time]
FROM log_table
WHERE ((enter_date + enter_time) Between [Forms]![criteria_export_trouble_tkt_records_dialog]![BeginDate] And [Forms]![criteria_export_trouble_tkt_records_dialog]![EndDate])
AND fsd_project = 'Growth'
ORDER BY (enter_date + enter_time);
Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.