count query and negative numbers question

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi All,

Pretty new to database queries so apologise if I sound dumb!

I have a database for stock control of energy efficient light bulbs for a
charity that gives the bulbs out free to folks in need.

The database has various fields including type of bulb, location, quantity
and whether the stock has been added to stock or removed.

I want to know how many of the different types of bulbs are in stock at any
time.

I have tried to run a query which makes the 'quantity' amount of bulbs
removed to be negative (puts a '-' in front of number). I then want to run a
second query to count the bulbs so the count subtracts any quantities that
are negative.

Can't get the queries to work and make the quantities negative and the
second query treats negative numbers as positives. What can I be doing
wrong.

Cheers, david


.



Relevant Pages

  • Re: Anyone ordered from BCS Pinball lately?
    ... I am not happy with the consistancy from Cointaker and their warm ... ordering from Bruce is that even though he seems to run his stock ... bulbs you want...I would say order with confidence. ...
    (rec.games.pinball)
  • Re: Anyone ordered from BCS Pinball lately?
    ... I am not happy with the consistancy from Cointaker and their warm ... whites. ... ordering from Bruce is that even though he seems to run his stock ... bulbs you want...I would say order with confidence. ...
    (rec.games.pinball)
  • Re: Anyone ordered from BCS Pinball lately?
    ... I am not happy with the consistancy from Cointaker and their warm ...    I have bought from Bruce many times in the past. ... ordering from Bruce is that even though he seems to run his stock ... bulbs you want...I would say order with confidence. ...
    (rec.games.pinball)
  • Re: How my LLB uncle learned an important lesson
    ... bulbs in my vehicle. ... selective yellow bubs available to fit them? ... Actually I was using Phillips brand D2S HID bulbs (which would have ... although far superior to the stock lighting... ...
    (rec.autos.driving)
  • Re: SALE: BCSPINBALL LEDS
    ... New 9LED 906 bulbs are now in stock for Blue, Red, Yellow, and White ... These are same shape as a Incandescent 906 bulbs and sustain the ... 2XLED W1 Frosted Lens are now in stock also. ...
    (rec.games.pinball)