Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

IIf query syntax in Make table query

Posted on 2013-02-03
2
290 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
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…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

860 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