Solved

Need help with IIf query/formula in Access

Posted on 2016-09-22
6
48 Views
Last Modified: 2016-09-22
I need help to create a query/formula in Access

credit:IIf( [Customers]![CreditAmount] >0)  then "limit" else "Not Available"

I know how to do this in Crystal reports but not Access
0
Comment
Question by:Gerhardpet
  • 3
6 Comments
 
LVL 51

Assisted Solution

by:Ryan Chong
Ryan Chong earned 250 total points
ID: 41810490
quick try:

credit:IIf( [Customers]![CreditAmount] >0,  "limit" , "Not Available")
0
 
LVL 1

Author Comment

by:Gerhardpet
ID: 41810503
Almost. It does show "Note Available" but instead of showing "limit" it shows #Error
0
 
LVL 15

Accepted Solution

by:
John Tsioumpris earned 250 total points
ID: 41810507
Maybe you have nulls
IIf(Nz( [Customers]![CreditAmount],0) >0,  "limit" , "Not Available")

Open in new window

0
 
LVL 1

Author Comment

by:Gerhardpet
ID: 41810509
Yes that was it. Seems to work now.
0
 
LVL 1

Author Closing Comment

by:Gerhardpet
ID: 41810577
Thanks for the help
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question