populating a combobox with just a date not time from a select query to pass as a varaible into a query
access 2010.
userform
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 ?
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.
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