Add 2 Conditions together

  • Thread starter Thread starter Bob Vance
  • Start date Start date
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)
 
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)
 
Back
Top