473,397 Members | 2,099 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,397 software developers and data experts.

Easy Question: Comparison Operator



Hi --

I haven't used Access on a regular basis in 3 years and many simple
concepts have escaped me.

I have a database and I'm trying to print only the records from the
database where field A "quantity" is less than field B "stock."

I just can't remember if I do that in the Field space or the Criteria
space and how I write it out.

Thanks in advance!

-Trey

Nov 13 '05 #1
2 1071
Join the tables on, say, part number (assuming the quantity is of parts)
and then put the quantity in a column. In the criteria line, you then have

<stock

IceTre wrote:

Hi --

I haven't used Access on a regular basis in 3 years and many simple
concepts have escaped me.

I have a database and I'm trying to print only the records from the
database where field A "quantity" is less than field B "stock."

I just can't remember if I do that in the Field space or the Criteria
space and how I write it out.

Thanks in advance!

-Trey


--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html

Nov 13 '05 #2
Hey thanks...actually there was only one table involved so it was even
easier than that -- all I needed to do was put:

[Quantity] < [Stock]

in the Criteria row in the Quantity field and it gave me what I needed.

Just very rusty on basic syntax stuff -- it will come back to me...

Thanks again!

-Trey

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: wongjoekmeu | last post by:
Hello all, I have a question about templates. Let say I have the following template function ----- template <class T> T max(T a, T b) { return a > b ? a : b ; }
16
by: Terry McNamee | last post by:
return arr.Length == 0 ? null : arr.ToString(); Can anyone tell me what this syntax means? Does it basically mean if arr.Length is equal to 0 then return null, else return the item in the...
4
by: Peter Kirk | last post by:
Hi I am looking at some code which in many places performs string comparison using == instead of Equals. Am I right in assuming that this will in fact work "as expected" when it is strings...
1
by: belinda thom | last post by:
Hi, I've had a look at http://wiki.python.org/moin/HowTo/Sorting, but am not sure if I can get the operator.itemgetter to do what I want for my particular need. I'm also not sure why creating my...
11
by: Andrus | last post by:
I created dynamic extension methods for <= and < SQL comparison operators: public static IQueryable<TLessThanOrEqual<T>(this IQueryable<Tsource, string property, object value); public static...
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: 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?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.