Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retrieving last record
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00350818
Message ID:
00350820
Views:
28
>I am requerying a grid
>
>requery('lv_promotion')
>
>How can I get the most recent values from this requery (how do I access the values of last record in this requery)? Help appreciated
>
>
>Thank You
>Nick Patel

Hi Nick,

Correct me if I am wrong, I understand that you have a view which is the RecordSource of your grid. After REQUERY() what do you mean by most recent values? If you want to show your last record (which probably contains the most recent somedate field) you may GO BOTTOM in your view and refresh the grid. Or, if you want the last (most recent record) be on top then you may add ORDER BY mydatefield DESCENDING and have it as first record in the grid.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform