dgillz I am not explaining this very well am I? I have the following formulas.
@Area1
// if this is a combined election type ie. it has a slash in it...
if instr({election.ElectionType},'/') > 0 then
// put the primary election type into @AreaName1
left({election.ElectionType},instr({election.ElectionType},'/')-1)
else
{election.electiontype}
@Area2
// if this is a combined election type ie. it has a slash in it...
if instr({election.ElectionType},'/') > 0 then
// put the secondary election type into @AreaName2
right({election.ElectionType},length({election.electiontype})-instr({election.ElectionType},'/'))
else
{election.electiontype}
Primary bit
if uppercase({ElectionArea.Electoral_Level})=uppercase({@Area Name1}) then
{ElectionArea.ElectionAreaName}
Secondary bit
if next({election.electionid}) = {Election.electionid} then
if uppercase(next({ElectionArea.Electoral_Level}))=uppercase({@Area Name2}) then
next({ElectionArea.ElectionAreaName})
then I use a formula to put the two together
@Primary bit +'Ward of the '+@Secondarybit +'Parish'
When I preview the report, the @Primary bit is correct but the @Secondarybit does not go past the first record.
Is this any better?
Thanks