edudna Posted May 26, 2007 Posted May 26, 2007 Let we have two tables clients and orders. We need to know from a portal the specific record number with GetNthRecord(orders; x) x=last record number of the client (last order). but how can we know x if in orders table write many clients and not just one? Pascal
fabriceN Posted May 26, 2007 Posted May 26, 2007 I'm not quite sure I understand, since GetNthRecord doesn't return a record number. If you need to get data from the LAST related record, you can use the... well, 'Last' function. The only difference is that it will return the last 'not empty' value. This function is categorised as a 'repeating function', but it is much more than that.
edudna Posted May 26, 2007 Author Posted May 26, 2007 First I want to thank you for your answer. To explain: Last function is good but the concept here is to get any value of a field of any record inticates x. For example if you want to get last-1 in dispersional records of different clients. If your client have five orders and the clients are 400 hundreds, of course you have problems to nominate the 4th order of your client if the orders table have 2000 records. The real problem is define the x number of a specific order for that client. It is like first to find the records then nominate the forth order but how can we do this with a calculation, it is difficult find and nominate. I hope you can understand, I may explain more... Pascal
comment Posted May 26, 2007 Posted May 26, 2007 I don't quite follow, but maybe this is what you're looking for.
edudna Posted May 27, 2007 Author Posted May 27, 2007 This is the exact solution! Thank you a lot, comment. Pascal
Recommended Posts
This topic is 6451 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now