Dec 30, 2005 #1 tekyge Programmer Joined Dec 11, 2005 Messages 125 Location 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 Joined Jan 3, 2005 Messages 5,457 Location 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 Joined Dec 11, 2005 Messages 125 Location 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 Joined Jan 3, 2005 Messages 5,457 Location 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 Joined Dec 11, 2005 Messages 125 Location 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