Setting the first record in list box

J

John Dumay

Hi Folks,

i am trying to set the first record in a list box (no multiselect) but the
problem I have is that the list box items are created from a dynamic query
that fisrt looks up the values. How do i tell the list box that to select the
first record and to highlight this when the form is displayed?

As always your help is appreciated.

Regards,


John Dumay
 
P

Peter Doering

John said:
i am trying to set the first record in a list box (no multiselect) but the
problem I have is that the list box items are created from a dynamic query
that fisrt looks up the values. How do i tell the list box that to select the
first record and to highlight this when the form is displayed?

Me!YourListBox = Me!YourListBox.ItemData(0)
 
D

daniel

John Dumay said:
Hi Folks,

i am trying to set the first record in a list box (no multiselect) but the
problem I have is that the list box items are created from a dynamic query
that fisrt looks up the values. How do i tell the list box that to select
the
first record and to highlight this when the form is displayed?

As always your help is appreciated.

Regards,


John Dumay
 

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