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

Parts Management Database Help Needed

I created a basic access 2003 data base to manage spare parts. The table has four fields: Stock Number, New Qty, Serviceable Qty & Repairable Qty. The table is updated by importing an Excell spread sheet. Previously a query would sum the New Qty and the Serviceable Qty Fields. Then I'd run another query that would compare the Repairable Qty to the (New Qty + Servicable Qty total). If the Repairable Qty was greater than or equal to the (New Qty + Servicable Qty total) it would only find those records. I was having troubles with null values and while attempting to repair the queries I corrupted them. Now I'm having troubles rebulding the queries (two years later... I fogot how I did them and I can't figure it out)
Aug 2 '07 #1
1 1384
JustJim
407 Expert 256MB
I created a basic access 2003 data base to manage spare parts. The table has four fields: Stock Number, New Qty, Serviceable Qty & Repairable Qty. The table is updated by importing an Excell spread sheet. Previously a query would sum the New Qty and the Serviceable Qty Fields. Then I'd run another query that would compare the Repairable Qty to the (New Qty + Servicable Qty total). If the Repairable Qty was greater than or equal to the (New Qty + Servicable Qty total) it would only find those records. I was having troubles with null values and while attempting to repair the queries I corrupted them. Now I'm having troubles rebulding the queries (two years later... I fogot how I did them and I can't figure it out)
Try this:

Expand|Select|Wrap|Line Numbers
  1. SELECT Part.PartStockNumber, Part.PartNewQuantity, Part.PartServiceableQuantity, Part.PartRepairableQuantity
  2. FROM Part
  3. WHERE (([PartRepairableQuantity]>=[PartNewQuantity]+[PartServiceableQuantity]));
where Part is the table name and PartStockNumber (PK, autonumber), PartNewQuantity, PartServiceableQuantity and PartRepairableQuantity are (Long) fields in that table.

Good luck

Jim
Aug 2 '07 #2

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

Similar topics

0
by: Philippe Poulard | last post by:
A sane document management approach: I manage my documents with a key, composed with some fields of my XML documents. When I have to refer to documents, I use a canonical form of the key so that...
5
by: brett valjalo | last post by:
Hey Gang! SORRY ABOUT THE LENGTH! Nice to see some of the same faces around this place from way back when ... Whatta buncha CDMA addicts some o' y'all are ;) Don't get me wrong, I...
2
by: David Hearn | last post by:
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Description: An unhandled exception occurred during the execution of the current...
0
by: Lester Knutsen | last post by:
A two-day IBM Informix and DB2 User Group Technical Conference - Friday and Saturday, December 8-9, 2006 Location - Fairview Park Marriott, Falls Church, VA (near Washington D.C.)...
3
by: sara | last post by:
Very strange behavior, but I suspect some is A2K and some might be for me to correct. Just trying to see if anyone can help and advise. We have a database that's been running for a few years...
1
by: asmusdk | last post by:
I am working on creating a stock management database for a small company. The company receives the merchandise from a handful of suppliers and stocks it before it is sent to the customers –...
2
by: olafinsbraaten | last post by:
I am using column-level encryption (ENCRYPT_CHAR, DECRYPT_CHAR) to protect selected columns in DB2 LUW v.9.1 and v.9.5 on Linux. The ultimate goal is to support the requirements put forward in...
0
by: gaojihuiyuan | last post by:
SAN Database Management Discounted IP SAN solutions. Switch to SAN, get offer details. http://www.healthhuman.com.cn/Database-Management.htm Database Management Courses and Schools Gain new...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.