Newbies Forsaken360 Posted March 1, 2004 Newbies Posted March 1, 2004 Hello All! I have a simple question. I'm working on a simple database to track defects. No more than 35 records. When i attempt to do a find I get the correct amount of records found but the record numbers are re-ordered. (if records 5,10 and 20 are the desired results, after the find they will be numbered as 1,2,3 the content is fine but the record numbers are off) How can i get the original static record numbers to appear after a find?
stanley Posted March 1, 2004 Posted March 1, 2004 Forsaken360: The number you are seeing is the CurrentRecordNumber. You want the CurrentRecordID. Set a field to a calculation, then choose Status(CurrentRecordID), and set the calculation result to be a number. Put it on your layout and voila, there it is. Status(CurrentRecordID) will give you the real number (in the order sorted, I think) Status(CurrentRecordNumber) will give you the number within the found set -Stanley
Newbies Forsaken360 Posted March 2, 2004 Author Newbies Posted March 2, 2004 Thanks Stanley, Worked like a gem!!! I humbly thank you.
stanley Posted March 2, 2004 Posted March 2, 2004 No problem. It's one of those things that you don't know about until you find it, but once you've found it you'll never forget, because there are so many uses... look at all the Status() functions - there's tons of handy stuff in there. -Stanley
BobWeaver Posted March 2, 2004 Posted March 2, 2004 Be careful using Status(CurrentRecordID). While the record ID will never change as long as the record remains in the current file, it is possible to have gaps in the numbering. If you delete a record, its ID will not be re-used, so there will be a gap. Also, if you import records, those record ID's may have a big gap between them and the other records.
Recommended Posts
This topic is 7570 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