Add 2 Conditions together

B

Bob Vance

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)
 
B

Bob Quintal

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)
 
Top