Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accounting: Balance is 0, but can't recognize

Status
Not open for further replies.

leadpro

Technical User
Jan 7, 2005
34
0
0
US
I have a query that calculates the balance of a client as the following:

Balance Due: [OrderAmount]-Count(LeadsMaster.[Home Phone])-[SumOfReturned]

Balance Due is not a field in my table, but can't seem to get this calculation to save in the table. The major problem I have is to recognize WHEN the balance is 0, then update a field OrderCommplete in the LeadsMaster table. This way I can reset the order.
 
why do you want to save a calculated field in a table? Breaks normalization rules. Calculate it on the fly when you need it. Have you read The Fundamentals of Relational Database Design?

Leslie

Anything worth doing is a lot more difficult than it's worth - Unknown Induhvidual
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top