Control Source of a Text Box

A

Arlend Floyd

What is the proper syntax for Text box on a report for a If Statement. Here
is my sample:

If [TxtCkAmt] < 750 Then [TxtCkAmt] = 750

Else

[TxtBaseAmt] -[TxtCommAmt]

End If
 
R

Rick Brandt

Arlend said:
What is the proper syntax for Text box on a report for a If
Statement. Here is my sample:

If [TxtCkAmt] < 750 Then [TxtCkAmt] = 750

Else

[TxtBaseAmt] -[TxtCommAmt]

End If

=IIf([TxtCkAmt] < 750, 750, [TxtBaseAmt] -[TxtCommAmt])

That's two "i"s as the function is named Immediate-If.
 
A

Arlend Floyd

Thanks Rick

Rick Brandt said:
Arlend said:
What is the proper syntax for Text box on a report for a If
Statement. Here is my sample:

If [TxtCkAmt] < 750 Then [TxtCkAmt] = 750

Else

[TxtBaseAmt] -[TxtCommAmt]

End If

=IIf([TxtCkAmt] < 750, 750, [TxtBaseAmt] -[TxtCommAmt])

That's two "i"s as the function is named Immediate-If.
 

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

Top