Microsoft
Software
Hardware
Network
Question : Doing Some math in a Select
I want to see if the qty on hand(QOH) is half of the FullPalletQty(FPQ)
so if item xyz has 20 on hand (QOH) and the item master shows full pallet qty (FPQ)=48
it would be .T.
since 20-48=28 (this is < half(48))
I want my select (if this is the best place to do it?) to....
SELECT item, qoh, fpq,
FROM MyTable ;
WHERE ((qoh-fpq) < (fpq/2));
into cursor cReults readwrite
Answer : Doing Some math in a Select
It is much simpler:
SELECT item, qoh, fpq ;
FROM MyTable ;
WHERE qoh >= fpq/2 ;
into cursor cReults readwrite
SELECT item, qoh, fpq, ROUND(qoh/fpq, 0) AS Percentage ;
FROM MyTable ;
WHERE qoh >= fpq/2 ;
into cursor cReults readwrite
BTW, 20-48= -28
Random Solutions
Access security query
MS Access 2007 - Query as control source for a field
My App can't find Crystal Decisions DLL after it is moved to another computer.
Pivot Table Form - Display Null Values as "0" on Data Axis
Stored Procedure Execution Options
blue screen errors...
IIS Virtual Directory "A share located on another computer"
Closing of Internet Explorer at the end of a process in ms access 2003
How do I check for the correct Excel extension when importing a file into MS Access 2003
IE issues with Java scripting errors, trying to print from Outlook and show websites taht have Java scripting embedded.