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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Me.Caption In a Form 1
Label to show IF 6
Visible Problem! 3
Put 2 Where Conditions together? 7
Adding a CC to email code! 7
Enter Date on Emailing 6
Sending Report via Email 3
Emailing Question from my DB 2

Top