Charlotte Foust
cfoust at infostatsystems.com
Fri Jun 24 10:08:04 CDT 2005
Me.Combo1 = Me.Combo1.ItemData(intRandom) Charlotte Foust -----Original Message----- From: Bruen, Bruce [mailto:Bruce.Bruen at railcorp.nsw.gov.au] Sent: Thursday, June 23, 2005 11:38 PM 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