Dec 30, 2005 #1 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"))
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"))
Dec 30, 2005 #2 Sheco Programmer Jan 3, 2005 5,457 US Please rephrase the question, unless you mean something like this: x = rs1("MyField") + rs2("MyField") Upvote 0 Downvote
Please rephrase the question, unless you mean something like this: x = rs1("MyField") + rs2("MyField")
Dec 30, 2005 Thread starter #3 tekyge Programmer Dec 11, 2005 125 US 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 Upvote 0 Downvote
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
Dec 30, 2005 #4 Sheco Programmer Jan 3, 2005 5,457 US 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] Upvote 0 Downvote
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]
Dec 30, 2005 Thread starter #5 tekyge Programmer Dec 11, 2005 125 US 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 Upvote 0 Downvote
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