Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remote Data Access
Message
From
24/10/2000 13:44:11
 
 
To
24/10/2000 13:39:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00433596
Message ID:
00433683
Views:
15
>This seems like it would work but the result is the first record in the table.

Oops.. left out something...

...WHERE drawingno < current_no ORDER BY drawingno DESCENDING

or

SELECT MAX(drawingno) FROM mytable WHERE drawingno < current_no

I also wondered - if you are putting these in a VFP table first, why not order it by drawingno when you create the table? Then you can simply SKIP or SKIP -1...
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform