473,385 Members | 1,331 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to query results if a price is greater than a sell price?

anoble1
245 128KB
I have ran into a pickle. I have data where I only want to show results where the actual sell price is greater or equal to a list price in the system. In other words I want to show only instances where you sold it for more than the system has in this List field.

How do I do that?
I have 2 columns of Data. List Price and Sell Price. Do I somehow use some criteria or combine a formula in the "Field"?
Would like to say something like
Expand|Select|Wrap|Line Numbers
  1. IF SELL >= List Price then Show the data else do not show data if you sold under List
Help?
Jun 13 '17 #1

✓ answered by NeoPa

The simple answer is to include criteria (WHERE clause) along the lines of :
Expand|Select|Wrap|Line Numbers
  1. WHERE ([SellPrice]>=[ListPrice])

2 948
anoble1
245 128KB
How about that. Tied something new for me.
Expand|Select|Wrap|Line Numbers
  1. >=[QS36F_PARTMAST]![PM_LIST]
Worked

I put this in the Criteria section of the query in Access.
Jun 13 '17 #2
NeoPa
32,556 Expert Mod 16PB
The simple answer is to include criteria (WHERE clause) along the lines of :
Expand|Select|Wrap|Line Numbers
  1. WHERE ([SellPrice]>=[ListPrice])
Jun 13 '17 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Jeremy | last post by:
I have a datasheet subform that is based off an ADO recordset. All is fine excpet the query results are displayed oddly. Rather than displaying the results as say 95.43, it displays it as...
2
by: Debbie | last post by:
When reporting the results of a select query which searches for particular words or phrases in a memo field, is it possible to bring attention to those words in the report using color? Thanks! ...
5
by: Brad Baker | last post by:
I'm completely new to ASP.NET programming, so please accept my apologies in advance for asking what is probably an obvious question. :-) I'm trying to write a page which will display the...
2
by: kevcar40 | last post by:
hi i have a query which returns the top 5 Areas of concern i.e Area(field name) Area 1 Area 2 Area 3 Area 4 Area 5 the results are displayed on a continuous form i am now trying to use this...
4
by: douglaswade | last post by:
I am new to Access, but I find this answer a little difficult to understand. I have an access query that list late work, I want to run the query and let say the results is ten records. I want one...
1
by: cdun2 | last post by:
Hello, I have a parameter query called 'Rev by AcctCode' that takes it's value from a form field; Forms!!. I am trying to find a way to run this query, get the parameter value to it, and populate...
2
by: gayano | last post by:
Hi, Again, This one is a tricky One,, I have a Form includes ... Start Date - Text Box Start Time - Text Box End Date - Text Box End Time - Text Box
2
by: raisq1 | last post by:
I have two tables: Expense Table: ( Contains miscellaneous expenses incurred while the goods are transported ) Expense_Type ContainerID Expense_Dollar Labour 20301 5000.00 ...
6
Chrisjc
by: Chrisjc | last post by:
Okay so I think I figured out the question I need to ask one of you enlighten php guys I am in need of a query that will get all fields opened up so duh * ha no but seriously here is the challenge...
3
by: Mo | last post by:
I thought that this was going to be super easy (and it probably is), but I couldn't figure it out. I have results from a MySQL query which include PartNumber, Qty, Cost, and Price. In one part of...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.