Re: Problem with SetWarnings
- From: "tina" <nospam@xxxxxxxxxxx>
- Date: Wed, 16 Nov 2005 22:25:04 GMT
if you comment out the last four lines of code and run the procedure, does
the label become visible on the form? if so, you might try repainting the
form after the setting the Visible value, as
Me.LabelOnForm.Visible = True
Me.Repaint
DoCmd.SetWarnings False
DoCmd.RunMacro ("MyMacro")
DoCmd.SetWarnings True
Me.LabelOnForm.Visible = False
hth
"Zubalea" <zubalea@xxxxxxxxxxx> wrote in message
news:1132179569.065723.128290@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Anyone have any idea why the Me.LabelOnForm does not because visible
> on my form when the 'DoCmd.SetWarnings False' is used.
>
> Me.LabelOnForm.Visible = True
> DoCmd.SetWarnings False
> DoCmd.RunMacro ("MyMacro")
> DoCmd.SetWarnings True
> Me.LabelOnForm.Visible = False
>
> I tried putting the Setwarnings in the macro. Same problem.
> I tried putting a pause before the DoCmd.SetWarnings False command.
> Same problem
>
> Searched the web and found nothing on the matter.
>
> Zubalea
>
.
- Follow-Ups:
- Re: Problem with SetWarnings
- From: Zubalea
- Re: Problem with SetWarnings
- References:
- Problem with SetWarnings
- From: Zubalea
- Problem with SetWarnings
- Prev by Date: Problem with SetWarnings
- Next by Date: RE: if... elseif statement
- Previous by thread: Problem with SetWarnings
- Next by thread: Re: Problem with SetWarnings
- Index(es):
Relevant Pages
|