Avatar of Fordraiders
Flag for United States of America asked on

populating a combobox with just a date not time from a select query to pass as a varaible into a query

access 2010.
I have a combo box being populated from the below sql statement...below  "rowsource"
SELECT DISTINCT [dbo_t_dispensing_email_audit_history].[Notify_Processed_Date] FROM dbo_t_dispensing_email_audit_history ORDER BY [Notify_Processed_Date];

What I need:
The value being pulled includes a time stamp value such as
6/5/2015 1:21:36 PM

I need the value in the combo box to display just the DISTINCT DATES and NOT THE TIME ALONG WITH IT ?

Microsoft Access

Avatar of undefined
Last Comment
Dale Fye

8/22/2022 - Mon

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

thanks !
Dale Fye

you can also use the DateValue() function to return only the date portion of a date/time field:

SELECT DISINCT DateValue([yourField]) as ProcessDate
FROM yourTable
ORDER BY DateValue([yourField])
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck