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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding To Recordset

Status
Not open for further replies.

tekyge

Programmer
Dec 11, 2005
125
US
Does anyone know how to add two recordsets togather for calulation. Want the two below to add and give one figure.

FormatCurrency(rs("Payment + APayment"))
 
Please rephrase the question, unless you mean something like this:

x = rs1("MyField") + rs2("MyField")

 
I have to fields one is Payments the other is APayments If Payments = 100.00 and APayments = 75.00 I need them added togather =ing 175.00
 
You might also consider adding them up from the database side... before the fields even go into the recordset.

Imagine that you used a SQL statement like this;[TT]
SELECT
Payments,
APayments,
(Payments + APayments) As 'MyTotal'
FROM
MyTable

[/tt]
 
Thanks guys I came up with anouther solutions I am going to calulate at the time of invoice rather than on the asp page. Thanks for your help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top