Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

? create a list box based on a table but not seeign items twice

Status
Not open for further replies.

lolita1

Technical User
Joined
Nov 8, 2003
Messages
5
Location
CA
Ok there is my question:

i want to create a list box to filter my forms. I want the list box to retrieve the date store in a table or query but it may have similar date in the table so i want the list box to show the date only once.

Thank you
 
Base the list box on a query that does an ORDER BY the date guy. You'll get only one entry for each date, no matter how many there may be of "1/5/04", for example.

PS - say hello to Vladimir for me.. :)


Jim

Don't be sexist - Broads hate that.
Another free Access forum:
More Access help stuff at
 
I think WildHare meant to write that you should use GROUP BY with the date field. I would use "Select Distinct DateField from YourTable" as the listbox RowSource because you don't have any aggregate functions in your SQL.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top