Andy Lacey
andy at minstersystems.co.uk
Thu Dec 4 07:36:48 CST 2003
Paul For intC=1 to 15 me("lblComment" & intc).Visible=False Next HTH Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > paul.hartland at fsmail.net > Sent: 04 December 2003 13:24 > To: accessd > Subject: [AccessD] Making Labels Visible & Invisible > > > To all, > > I have a group of labels on a form called lblComment1 through > to lblComment15, and what I want to do is in the > OnCurrentEvent make them all invisible. I dont really want > to have to type > > Me.lblComment1.Visible = False > > etc for every label > > Is there a way I can do this in a loop, or make the labels > into an array and loop through them that way. > > Thanks in advance for any help on this. > > Paul Hartland > Freeserve AnyTime - HALF PRICE for the first 3 months - Save > £7.50 a month > www.freeserve.com/anytime > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > >