ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old August 6th, 2003, 11:16 AM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 22 sec
Reputation Power: 6
Send a message via AIM to unatratnag
recordset doesn't support this method

I can't seem to go through this recordset, method isn't supported on any of the commented out lines, anyone know what my problem is?

Code:
		dim objConn
		set objConn = server.CreateObject("ADODB.CONNECTION")
		objConn.Open "Received", "t", "b"
		Dim RS
		Set RS = Server.CreateObject("ADODB.Recordset")

		dim strSQL
		strSQL = "select TOP 15 (requestNumber) as rn from request_received"
		RS = objConn.Execute(strSQL)

		'RS.MoveFirst
		'do while not RS.EOF
		'	Response.Write reqnum("rn")
		'	objRS.MoveNext
		'loop
		'response.write RS.Fields.Count
		objConn.Close

Reply With Quote
  #2  
Old August 6th, 2003, 11:30 AM
Vlince Vlince is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Canada, Quebec, Montreal
Posts: 410 Vlince User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
You'll kick yourself...:-)

You forgot the Keyword Set


here:


Dim RS
'Set RS = Server.CreateObject("ADODB.Recordset")

dim strSQL
strSQL = "select TOP 15 (requestNumber) as rn from request_received"

Set RS = objConn.Execute(strSQL)

I've commented the entire line in bold.
Let the connection object create your IMPLICIT recordset

Hope this helps!
Sincerely

Vlince

Reply With Quote
  #3  
Old August 6th, 2003, 11:52 AM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 22 sec
Reputation Power: 6
Send a message via AIM to unatratnag
aww for cryin out loud..... I'm never copying old .net code to pure asp again. I was beatin myself in the head trying to figure out why one was working and the other wasn't.

Thanks vlince

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > recordset doesn't support this method


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway