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 June 17th, 2003, 07:21 PM
Registered User
 
Join Date: Jun 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Manipulating recordset from the DB

I am having this problem with the
objRs.Fields. When I retrieve the record from SQL if the value is 9 I
have to change it to 0. This is not working - can any of you help me
point where exactly I am missing the logic.


If objRs.Fields ("CirusStatusIndicator") = "'9'" Then
SET objRs.Fields ("CirusStatusIndicator") = "'0'"
Response.Write "<TD align=left>" & objRs.Fields
("CirusStatusIndicator") & "</TD>"
Else
Response.Write "<TD align=left>" & objRs.Fields
("CirusStatusIndicator") & "</TD>"
End if

Thanks
Sri
 
Old June 18th, 2003, 06:59 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

If you want to change the 9's to 0's permanently in the db, just do an UPDATE query
Code:
UPDATE tableName
SET CirusStatusIndicator = '0'
WHERE <whatever identifies the record>





Similar Threads
Thread Thread Starter Forum Replies Last Post
DB recordset paging using ajax paging? kumiko Classic ASP Basics 0 May 26th, 2008 10:23 AM
ASP | db recordset paging PLEASE HELP!! burns Classic ASP Basics 0 February 26th, 2006 09:43 AM
Manipulating the data in db dungey PHP Databases 4 January 6th, 2005 11:31 AM
XML from a DB recordset (removal of &lt;&gt;) Thodoris XML 3 July 13th, 2004 12:28 AM
Kinda complicated loop through DB Recordset... plasma800 Classic ASP Basics 2 March 4th, 2004 06:23 PM





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