deko wrote:
If I know the index of an item in a ListBox, how do I "move" the list or "go
to the item" so that item is highlighted and displayed in the list box?
Is there some way to do something like this:
DoCmd.Goto Me!lstEntity.ItemData(i) 'pseudo code
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Try this:
Me!lstEntity.Selected(i) = True
i is a zero-based index. To select the first item in the List Box use
0. To select the 4th item in the List Box use 3.
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv
iQA/AwUBQw9lt4echKqOuFEgEQKEaACgto1o0p7u8+dW10O1rG44KX yDna8AoM9g
rT8PLG8hL1SuzCrrtZIHsITZ
=Ri+J
-----END PGP SIGNATURE-----