[AccessD] Setting listbox selection

Charlotte Foust cfoust at infostatsystems.com
Thu Aug 16 16:47:40 CDT 2007


Sorry, I misunderstood your problem.  But listboxes are selection
controls, not value display controls, in all versions up to 2007, which
I can't speak for.  Is this for one of those horrible 2007 multivalue
fields, by any chance? 

Charlotte Foust

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher
Jeris
Sent: Thursday, August 16, 2007 11:38 AM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] Setting listbox selection

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Charlotte Foust wrote:
> That won't give you what you want, as you've discovered.  Here's a 
> routine I used on a pick list form that built a string from the
> selections:
> '****** Begin Code
> Private Function BuildListString(ByRef lst As ListBox, _
>                                 Optional blnSelectedOnly As Boolean = 
> False, _
>                                 Optional blnAll As Boolean = True) As 
> String [...]

That works for reading values from the listbox control, but my problem
is that writing values _to_ the listbox control doesn't seem to do what
it should.

peace, Chris Jeris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGxJl65ICCNV0oGWARAmezAJ91zS2MEUCLT4XZTdo9c0MEdyi3rQCeIEiu
8fS2hb36nnQh+VQ/PIO1Bnw=
=9fH6
-----END PGP SIGNATURE-----
--
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com




More information about the AccessD mailing list