Complex Query Again

A

Anthony

Ok, I have a table that has a device name, par, and current I only want it to
show devices that have 3 or less off of the current qty from the par. Can I
do this in access with a query?

Thanks
 
J

John Spencer

Perhaps. I find your question a bit vague, but I think what you want is the
following

SELECT *
FROM YourTable
WHERE [Par]-[Current] Between -3 and 3

OR

SELECT *
FROM YourTable
WHERE Abs([Par]-[Current]) <= 3

John Spencer
Access MVP 2002-2005, 2007-2008
The Hilltop Institute
University of Maryland Baltimore County
 
A

Anthony

Thanks for everyone's help.

John Spencer said:
Perhaps. I find your question a bit vague, but I think what you want is the
following

SELECT *
FROM YourTable
WHERE [Par]-[Current] Between -3 and 3

OR

SELECT *
FROM YourTable
WHERE Abs([Par]-[Current]) <= 3

John Spencer
Access MVP 2002-2005, 2007-2008
The Hilltop Institute
University of Maryland Baltimore County
Ok, I have a table that has a device name, par, and current I only want it to
show devices that have 3 or less off of the current qty from the par. Can I
do this in access with a query?

Thanks
 

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

Top