B
Brian Paul via AccessMonster.com
Thank you Mr. Lebans for your many examples of list box. they are easy to
follow. Anyhow I have a form with 2 cascading list boxes. The first list
box I have 2 colums. Colum 0 has a date formatted to dddd to display the day
of the week and colum 1 has the same field but formated to show the short
date and displays for example 03 Jun 96.
When I select one of the dates in the first listbox I get the results in the
second listbox. In the second list box In colum0 which is hidden by setting
its length to 0 In the querry i set it to match the Colum in the first list
box so it works fine.
Now that you know how that works. What I would like to do is when I open the
form, I would like it to automatically highlight todays date in the first
list box, thus; displaying record results in the 2nd. However, If there is
no entry for todays date in the first listbox it highlights tomorrows date or
next available date in the first list box.
Thanks,
PS. If this one could be figured out, I feel this would benifit alot of
people that have appointment calander, etc.
and would be a nice addition to an MVP's web site.
follow. Anyhow I have a form with 2 cascading list boxes. The first list
box I have 2 colums. Colum 0 has a date formatted to dddd to display the day
of the week and colum 1 has the same field but formated to show the short
date and displays for example 03 Jun 96.
When I select one of the dates in the first listbox I get the results in the
second listbox. In the second list box In colum0 which is hidden by setting
its length to 0 In the querry i set it to match the Colum in the first list
box so it works fine.
Now that you know how that works. What I would like to do is when I open the
form, I would like it to automatically highlight todays date in the first
list box, thus; displaying record results in the 2nd. However, If there is
no entry for todays date in the first listbox it highlights tomorrows date or
next available date in the first list box.
Thanks,
PS. If this one could be figured out, I feel this would benifit alot of
people that have appointment calander, etc.
and would be a nice addition to an MVP's web site.