From: Bob Vance on
Can these 2 conditions be added together?

Me!cmdSendMailButtonCI.Visible = Forms!frmMain!ckbShow2ndCompany
Me.SendMailButtonCI.Visible =
IIf(IsOwnerWithEmail(Nz(Me.cbOwnerName.Column(0), 0)) _
And IsEmailOn, True, False)

--
Thanks in advance for any help with this......Bob
MS Access 2007 accdb
Windows XP Home Edition Ver 5.1 Service Pack 3


From: Bob Quintal on
"Bob Vance" <rjvance(a)ihug.co.nz> wrote in news:#FBQkkpqKHA.728
@TK2MSFTNGP04.phx.gbl:

> Can these 2 conditions be added together?
>
> Me!cmdSendMailButtonCI.Visible = Forms!frmMain!ckbShow2ndCompany
> Me.SendMailButtonCI.Visible =
> IIf(IsOwnerWithEmail(Nz(Me.cbOwnerName.Column(0), 0)) _
> And IsEmailOn, True, False)
>

Me!cmdSendMailButtonCI.Visible = _
(Forms!frmMain!ckbShow2ndCompany = true) AND _
IIf(IsOwnerWithEmail(Nz(Me.cbOwnerName.Column(0), 0)) _
And IsEmailOn, True, False)

--
Bob Quintal

PA is y I've altered my email address.