Avatar of 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?
Microsoft Access

Avatar of undefined
Last Comment

8/22/2022 - Mon
Richard Daneke

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Dale Fye

Do you have the listboxes column headers displayed?  If so, change the index from 0 to 1.

Thanks. That did it.
Your help has saved me hundreds of hours of internet surfing.