I am trying to be able to run a couple different files from one database and having a little trouble working it out without doing silly workarounds. Basically what I have is a loan coupon book, printing say 10-15 records of the same name, then switching to a new name, printing 10-15 more, and so on and so forth. I then have a second layout to print envelopes for these sets, so I need one envelope for book 1, one for book 2, etc. I have tried the "CHANGED" expression, but it expressly states that it treats as false the first record, so while I can print the rest of the envelopes ok, I couldn't do the first one.
I have tried this as a layout expression, but with no luck:
IF(RECORD_NR()=1,Print,(IF(CHANGED([Account Number]),Print,Skip)))
Basically I want to say:
If record number is 1, print
else if account number changed, print
else skip
Any thoughts or help? Thanks!
--edit--
As a side note, yes I know I could add an extra record at the beginning, but that's not the proper way to work it out, imho
--edit--
Edited by Chris S. (09/22/11 05:28 PM)