can i use an if then statement?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i want to do a calculation that works out a percentage
discount but the customer will only get the discount if
he/she buys X amount of goods, i know i could do this
with an if then else endif statement but i dont know if i
could do it in access, please help
 
Yes in vba, you can use
if xxxx then yyyyy
or
if xxxx then
yyyy
else
zzzz
end if
or any of several different forms.

You can also use the VBA function IIF

IIF(xxxx,yyyy,zzzz)

This is especially convenient when used inside a query.

(david)
 

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

Access Test if value is less than percent 0
iif statement 2
How to put a Calculated Value in a Field? 1
Newbee 12
Finding specific text inside of a text field 1
Nested If statements 15
joining two iif statements 2
If Statement 4

Back
Top