Andy Lacey
andy at minstersystems.co.uk
Fri Jun 24 12:43:19 CDT 2005
Bruce IIRC you need to do something like Me!lstControl.Selected(randomnuber)=True -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Bruen, Bruce > Sent: 24 June 2005 07:38 > To: Access Developers discussion and problem solving > Subject: [AccessD] Setting ListIndex value (A97) > > > hi guys, > > I need to set the selected item of a combobox to a random > value when user clicks a commandbutton. e.g. [Select random > gift] button sets the > Gift: combo next to it to a random value (between 1 and listcount-1!) > > Since listindex is readonly can anyone tell me how to do this? > > tia > bruce > > > This e-mail and any attachments may contain confidential > information that is intended solely for the use of the > intended recipient and may be subject to copyright. If you > receive this e-mail in error, please notify the sender > immediately and delete the e-mail and its attachments from > your system. You must not disclose, copy or use any part of > this e-mail if you are not the intended recipient. Any > opinion expressed in this e-mail and any attachments is not > an opinion of RailCorp unless stated or apparent from its > content. RailCorp is not responsible for any unauthorised > alterations to this e-mail or any attachments. RailCorp will > not incur any liability resulting directly or indirectly as a > result of the recipient accessing any of the attached files > that may contain a virus. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > >