Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / February 2008

Tip: Looking for answers? Try searching our database.

How can I force selection of the 1st record of multiselect listbox from VB

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Max Moor - 13 Feb 2008 18:17 GMT
Hi All,

       I'm still stuck on this.  I have a multiselect listbox in Access 2002.  
I want to force the first record to be selected from VB after the listbox is
requeried.  As I understand it, the value property always reads Null in this
case.  Trying to set it doesn't work, so I assume this is a two way street
for multiselects.

       Can anyone help?

Regards,
Max
Mark A. Sam - 13 Feb 2008 22:35 GMT
Max,

If your listbox was named [myListBox] then the method would be

[myListBox].Selected(1) = True

God Bless,

Mark A. Sam

> Hi All,
>
[quoted text clipped - 10 lines]
> Regards,
> Max
Max Moor - 14 Feb 2008 05:53 GMT
"Mark A. Sam" <MarkASam@EmEssEn.Com> wrote in news:uwxd1CpbIHA.4208
@TK2MSFTNGP04.phx.gbl:

> myListBox].Selected(1) = True

Hi Mark,

       Well.  That was rediculously simple.  I had managed to get stuck on the
'Selected' property being read only.  I even briefly considered that you were
crazy to even suggest writing it as a solution.

       Of course, I have no idea where I got that idea now.  I just got it in
there somehow, and couldn't see past it.  Maybe it's time for a day away?

       Thanks for the wake up call.  :-)

- Max
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.