Default selection in listbox

  • Thread starter Thread starter eric
  • Start date Start date
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
 
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

Similar Threads

Last day of month 3
Sort with Listbox Selection On Top 1
Access Cannot select items in listbox 1
Cancel a listbox selection 0
datediff help 4
Select record in a listbox 8
Listbox in continuous subform 4
Lookup Question 1

Back
Top