473,385 Members | 1,912 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,385 software developers and data experts.

Subtract values in a field from a number?

I wanna take 300 and subtract it by a value inside a field and i want the results to display in a new field called "Oustanding Fees."


The field is called "FeesPaid" and the field contains the amount the person has paid. Anyone who hasn't paid 300$ still owes money. For example there is a value inside the field 125.... how would i subtract that and all the other values in the field from 300?
Nov 28 '08 #1
1 3582
SELECT 300-FeesPaid AS OutstandingFees
FROM Fees
Dec 5 '08 #2

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

Similar topics

11
by: abs | last post by:
Input field of the form. How to check which number this field has ? I mean the order number, like variable elementNumber in document.forms.elements ? Is it possible to check without looping and...
2
by: vnl | last post by:
I need to create a report or field that will show the difference between a customer's balance on two different dates for every customer in our database (for example, see below: I need the...
19
by: cover | last post by:
Is there a restriction to the number of fields you can work with in a PHP to MySQL connection? I'd used as many as 15 quite a few times and now I have a form with 34 fields and can't seem to get...
1
by: Chippy | last post by:
I am having trouble working out how to update a field on an open form with a calculation based upon calculations from other tables! For example, I have 3 tables: Diary Diary_ID: autonum,...
1
by: Xaysana12345 | last post by:
Hi there, Please help, I'm absolutely stuck. I want to do MsgBox whenever number in subformfield greater than the number in mainform field or other way around, I want to happen a message says...
4
by: didacticone | last post by:
i have a form that shows text boxes with different values, and i would like when a button is clicked for '1' to be subtracted from the total of one of those text boxes.... thanks for your help
6
by: ashenton | last post by:
Firstly: I've a fairly inexperienced access user! I'm developing a simple stock control database and need to be able to show a total stock for each item. So far I have two queries, both are...
4
by: Blaikie | last post by:
Hello everyone! I'm using Access 2000 and working with an old database but need some help. I have a query displaying information from the database each week which has several columns, date,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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,...

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.