Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 27th, 2005, 08:35 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default multiply two ASP values together

how do i multiply two ASP values together.

Value 1: rs4("count(trip_id)")
Value 2: rs5("no_of_pass")

Thanks.

Picco

__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk
 
Old January 27th, 2005, 08:36 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

this doesnt work...

segments = rs4("count(trip_id)")*rs5("no_of_pass")
response.write "Segments = " & segments & "<br>"

 
Old January 27th, 2005, 08:41 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Convert them to numbers first, would be my guess.

Jacob.
 
Old January 27th, 2005, 08:41 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

the value of rs4("count(trip_id)") is 1
the value of rs5("no_of_pass") is 1

what do i do?


 
Old January 27th, 2005, 08:45 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

i now have the rs4 and rs5 into variables:

segments = ("count_trip_id")*("number_of_passengers")
response.write "Segments = " & segments & "<br>"

still not working.....

 
Old January 27th, 2005, 08:53 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

the fix:

segments = cdbl(count_trip_id)*cdbl(number_of_passengers)







Similar Threads
Thread Thread Starter Forum Replies Last Post
Design question - Change multiply reports roy_mm Reporting Services 1 January 16th, 2007 05:01 PM
send multiply query one stored procedures vipinpaliwal1980 SQL Server 2000 3 April 20th, 2006 12:34 PM
How to multiply two value from two fields fdtoo SQL Server 2000 0 April 11th, 2006 08:40 PM
Passing values between Asp to Asp pages. jayaraj ASP.NET 1.0 and 1.1 Professional 3 May 23rd, 2004 06:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.