April 12, 2008 at 6:49 am
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
August 12, 2008 at 4:22 am
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.
August 13, 2008 at 4:37 pm
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 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply