Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VCR Navigation buttons
Message
From
28/01/2005 11:42:15
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00981540
Message ID:
00981777
Views:
28
Roy,

That is correct. You have to use desc when getting the previous row. Also, I got burned by doing this on a list of names when there was multiple names the same. It will skip all the same names and to the next one that is different. Good luck.

>Thanks for the responses,
>
>James, I also tried that and worked pretty good for the "next" but for "previous" I was having some problems but you just gave me a good idea using the asc. For example for the previous I had tried.
>
>select top 1 * from mytable where mycolumn < 'last_col_value'
>
>But obviously it grabs the very first record but if I change the asc/desc order to what I want I probably can get the previous record. Let me try it, thanks!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform