Re: Clearing the captions of labels
From: Evan McCutchen (evanspamsucks_at_radiologyonesource.com)
Date: 11/02/04
- Next message: Sandy: "RE: Update Query in Code"
- Previous message: Graham Mandeno: "Re: Importing Path Info to a Record"
- In reply to: fredg: "Re: Clearing the captions of labels"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 2 Nov 2004 16:54:05 -0600
thanks!
"fredg" <fgutkind@example.invalid> wrote in message
news:xk1xzo9btslv$.1ez67z3ggtiy8.dlg@40tude.net...
> On Tue, 2 Nov 2004 16:03:53 -0600, Evan McCutchen wrote:
>
>> Hello,
>>
>> When a viewing form has reached the end of a set of records (ie, the form
>> displays "(Autonumber)" in the numbering field, how can i clear the
>> captions
>> of labels on the form?
>>
>> Any help would be greatly appreciated!
>>
>> Thanks,
>> E.A. McCutchen
>> evan AT radiologyonesource DOT com
>
> Well, this is what you asked for.
> The only problem you are going to run into is that once you clear the
> captions, there gone (in this Form session only) unless you have some
> way to put them back if you want them again. It's not a big deal to
> do, but you need to be aware of it. The next time you open the form,
> the labels are back anyway.
>
> Code the Form's Current event:
> If Me.NewRecord = True Then
> Dim c As Control
> 'just clear the detail section unless you want everything, then use
> For each c in Controls instead
> For Each c In Me.Section(0).Controls
> If TypeOf c Is Label Then
> c.Caption = ""
> End If
> Next c
> End If
>
>
> --
> Fred
> Please only reply to this newsgroup.
> I do not reply to personal email.
- Next message: Sandy: "RE: Update Query in Code"
- Previous message: Graham Mandeno: "Re: Importing Path Info to a Record"
- In reply to: fredg: "Re: Clearing the captions of labels"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|