Previous function

Meeting place for R&R customers and clients to share tips and ideas. Post your questions, messages or problems here.
Post Reply
billj_(Guest)
Posts: 3
Joined: Tue Oct 10, 2017 12:44 pm

Previous function

Post by billj_(Guest) » Thu May 26, 2005 9:56 am

I am trying to select information in previous records, Previous function only works if the specified field is in the previous record. What if it is not in the previous record? ____IIF(id#=PREVIOUS(id#),PREVIOUS(ref#),"")..This only works if my id# is in the previous record. I need the following example.____ex: If my id# has been repeated several times and is not in the previous record I need to retrieve the ref#. Example below.____ex: ref# id#__ a01 1001__ a02 2002__ a03 1001 = a01__ a04 3200__ a05 3232__ a06 1001 = a03__ __Thanks for any help.

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: Previous function

Post by kfleming » Thu May 26, 2005 2:48 pm

If you wanted to test for a small discrete set of id^s you could use a set of calculation but if you wanted to test for any number of ids and those ids are not know in advance, the only way to get there would be to do two reports, the first a DBF export of ID^s and references and the second a relation to that exported table.____Kathleen__R&R Support____

Alan_Klein
Posts: 68
Joined: Tue Oct 10, 2017 12:44 pm

==> RE: Previous function

Post by Alan_Klein » Thu Jun 02, 2005 12:06 pm

What if you sort by ID Number and then run the Previous function?

Post Reply