multiselect list box with date range

  • I attach an MDB that the has the multiselect listbox

    control. I would however, like to include on the same form

    a criteria for a date range; start date, end date and then

    build that into the sql when I run the query.

    I woiuld also like to make the "All" stay at the top of the

    list box.

    Can anyone please help me on these 2 items.

    Many thanks

  • it's been a while since you posted but i think it's working now. don't use 'date' as the name of a field. hth.

    "You met me at a very strange time in my life." - Tyler Durden
  • You can sort the list to put ALL at the top using the following query;

    SELECT DISTINCT tblCompanies.strCompanyCounty, 1

    FROM tblCompanies

    UNION

    select "All", 0

    from tblCompanies

    order by 2;

    🙂

    Chris

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply