Hi,
I am dynamically building a query based on user choices. Two choices within the query are to pick a beginning date and an ending date. I am using the Microsoft date/time picker for both. When I debug the form to see the query it is showing time as well as date. How can I strip off time so I just have date in the query.
sWhere = sWhere & " AND [AD_SALES_DATE] BETWEEN " & BegSalesDate & " AND " EndSalesDate.
BegSalesDate and EndSalesDate have date as 7/14/2003 10:37:51 pm. I want to strip off the time. Is there a function to do this?
Thanks in advance.
...TheB
I am dynamically building a query based on user choices. Two choices within the query are to pick a beginning date and an ending date. I am using the Microsoft date/time picker for both. When I debug the form to see the query it is showing time as well as date. How can I strip off time so I just have date in the query.
sWhere = sWhere & " AND [AD_SALES_DATE] BETWEEN " & BegSalesDate & " AND " EndSalesDate.
BegSalesDate and EndSalesDate have date as 7/14/2003 10:37:51 pm. I want to strip off the time. Is there a function to do this?
Thanks in advance.
...TheB