Robert L. Stewart
rl_stewart at highstream.net
Thu Nov 18 12:47:09 CST 2004
If you are working with a subReport, the Gustav is correct. Reports and forms are the same in referencing controls in a sub. Robert At 12:01 PM 11/18/2004 -0600, you wrote: >Date: Thu, 18 Nov 2004 11:30:50 -0500 >From: "Bobby Heid" <bheid at appdevgrp.com> >Subject: RE: [AccessD] Control reference question. >To: "'Access Developers discussion and problem solving'" > <accessd at databaseadvisors.com> >Message-ID: <916187228923D311A6FE00A0CC3FAA305BB9F3 at ADGSERVER> >Content-Type: text/plain; charset="US-ASCII" > >I dunno, it works as I have it. I have never used Report on the end like >you have it. > >Bobby > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Thursday, November 18, 2004 11:09 AM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] Control reference question. > > >Hi Bobby > >Shouldn't it read: > > With Reports!Closeout!Closeout_GL_sub.Report > If !txtSetBold <> 0 Then > !txtGLEstPayroll.FONTBOLD = True > !txtGLFinalPayroll.FONTBOLD = True > Else > !txtGLEstPayroll.FONTBOLD = False > !txtGLFinalPayroll.FONTBOLD = False > End If > End With > >/gustav