[AccessD] RE: A2k2 listboxes

Bucher, Dave Dave.Bucher at state.mn.us
Thu Mar 31 10:48:09 CST 2005


ListBoxName.Column(0) references first field ... ListBoxName.Column(1)
references second field

ListBoxName.Selected(0) =  True ...selects first item in a listbox

Dim strItems as string
Dim intItem as Integer

For intItem = 0 to ListBoxName.ListCount - 1
If ListBoxName.Selected(intItem) then
	'Do something
End If
Next intItem

... lets you move/test and perform operation operations on items in list

Dave Bucher
Information Technology Specialist
Children's Research, Planning and Evaluation

Caution: This e-mail and attached documents, if any, may contain
information that is protected by state or federal law. E-mail containing
private or protected information should not be sent over a public
(nonsecure) Internet unless it is encrypted pursuant to DHS standards.
This e-mail should be forwarded only on a strictly need-to-know basis.
If you are not the intended recipient, please: (1) notify the sender
immediately, (2) do not forward the message, (3) do not print the
message and (4) erase the message from your system.




More information about the AccessD mailing list