Click to See Complete Forum and Search --> : Next IsNull help required


Ann-Louise
June 5th, 2007, 05:29 AM
Hi,

I have written a simple formula to identify the last address in a sequence, in a multiple address report which is sorted in alphabetical order:

If next ({address}) <> {address} then 1 else 0

This works fine, however, the very last record in the report 'should' have a value of 1 but doesn't because obviously there is no Next record.

I have therefore tried adding the following line (and variations on the same theme!) but cannot achieve what I want.

If Next ({address}) <> {address} then 1 else
If Next IsNull ({address}) then 1 else 0

I presume this is not possible as there is no Next record. Can anyone suggest a way around this?

Thanks.

JaganEllis
June 5th, 2007, 06:14 AM
OnLastRecord

Ann-Louise
June 5th, 2007, 07:25 AM
Thanks. My report now works. Apologies for being a numbskull!