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 September 21st, 2003, 10:27 AM
atferraz atferraz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 108 atferraz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 4 sec
Reputation Power: 5
Rs.MoveLast doesn’ go to last record

Hello, have the following code
--------------------------------------------
SQLstm = “select xpto from table”
rs.Open SQLstm,1,1
rs.MoveLast
----------------------------------------------
the sqlServer table has 50 records and my rs.MoveLast doesn’t put the cursor in last record. Most times goes to 49 or 48 position. Until 45 records it went ok

Please, Anyone
__________________
atferraz

Reply With Quote
  #2  
Old September 21st, 2003, 03:19 PM
OldJacques's Avatar
OldJacques OldJacques is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: in Orbit mostly
Posts: 148 OldJacques User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Are you sure there are 50 records with valid "xpto" fields?

What do you mean that it goes to 48th or 49th position? Are you sure it isn't just using a different order than what you are expecting?

If there is a "counter" field which gets incremented in every insertion, try "SELECT ID, xpto from table" and see if it were in the order you are expecting.

Reply With Quote
  #3  
Old September 22nd, 2003, 09:11 AM
atferraz atferraz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 108 atferraz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 4 sec
Reputation Power: 5
Thanks OldJacques. Problem soved with order by clause

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Rs.MoveLast doesn’ go to last record


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 4 hosted by Hostway