Solved

IIf query syntax in Make table query

Posted on 2013-02-03
2
281 Views
Last Modified: 2013-02-03
I am getting a error with the following make table query,

BaseCost: IIf([Weight]<100,[Cost]),IIf([Weight]>100,[Cost]*[Weight])

Error: "contains invalid syntax or you need to enclose your text data in quotes"

If i try the first part only it works, BaseCost: IIf([Weight]<100,[Cost])
0
Comment
Question by:ExpressMan1
2 Comments
 
LVL 33

Accepted Solution

by:
Norie earned 500 total points
ID: 38849632
You have an unneeded  ) after [Cost].

I don't think the 2nd IIf is needed, so try this.

BaseCost: IIf([Weight]<100,[Cost],[Cost]*[Weight])
0
 

Author Closing Comment

by:ExpressMan1
ID: 38849698
Perfect. Thank You imnorie.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
Outlook Free & Paid Tools
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now