Default selection in listbox

E

eric

Hello,

I have a listbox of years. For example:
1999/2000
2000/2001
etc.

I would like to default to a specific year each time the
form is open. For instance, part of my years table has a
yes/no field as CurrentYear. I would like the list to
default to the singe record that has CurrentYear marked
as true.

Any ideas?

Thanks
 
D

Dale Fye

How about setting the controls default value equal to a DLOOKUP.

DefaultValue: = DLOOKUP("ID", "Years", "CurrentYear = -1")

--
HTH

Dale Fye


Hello,

I have a listbox of years. For example:
1999/2000
2000/2001
etc.

I would like to default to a specific year each time the
form is open. For instance, part of my years table has a
yes/no field as CurrentYear. I would like the list to
default to the singe record that has CurrentYear marked
as true.

Any ideas?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top