Charlotte Foust
cfoust at infostatsystems.com
Mon Dec 8 13:13:22 CST 2003
I generally do something like that too, but only when it's important. I'm willing to live with it in listboxes. Charlotte Foust -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Monday, December 08, 2003 9:57 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Clear item from listbox Hi Charlotte Ehh? So you wish to move the focus without moving it? I wouldn't wonder how to accomplish this; I have a tiny textbox - with a width of zero and fore- and background colour matching the form - to move the focus to. /gustav > Yes, I meant without doing that. > Charlotte Foust > -----Original Message----- > From: Gustav Brock [mailto:gustav at cactus.dk] > Sent: Monday, December 08, 2003 9:14 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Clear item from listbox > Hi Charlotte >> Are you trying to do this in Access or in the stored procedure? In >> Access, you can loop through the listbox's itemsselected collection >> and set each item's Selected property to false. If you're just seeing >> a marquee around the item rather than reverse video showing it is >> selected, then I can't help. I've never figured out how to get rid of >> that either. > Move the focus off the listbox. > /gustav >> I have a listbox and I want to clear all items selected in it. To do >> that, I am executing a stored procedure. But, even when I've done >> that, the first row in the listbox remains selected. Is there any >> code that will unselect all items in a list box? I'm in an adp in >> Access XP. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com