Setting the first record in list box

  • Thread starter Thread starter John Dumay
  • Start date Start date
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
 
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)
 
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
 
Back
Top