Link to home
Start Free TrialLog in
Avatar of DatabaseDuane
DatabaseDuane

asked on

List box value keeps coming up null

I have a search form with a listbox that automatically populates as you update the fields (last, address, etc). My objective is that the first item in the list will be the default item in the list so I put

Me.listFoundRecords.Selected(0) = True

after the search function happens.

My problem is that even though the record appears to be selected (it is highlighted), the value of the listbox is still null unless I click on the record. Any thoughts?
ASKER CERTIFIED SOLUTION
Avatar of Richard Daneke
Richard Daneke
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Do you have the listboxes column headers displayed?  If so, change the index from 0 to 1.
Avatar of DatabaseDuane
DatabaseDuane

ASKER

Thanks. That did it.