G
Guest
Hi. I'm having a silly problem when I try to add the values in a series of
text fields together. Each of the text fields (set to format General Number)
is fed from a DLookup like this:
=DLookUp("TotalPlacements","qrySECCountOfPlacements","[SchoolID] = " &
Nz([SchoolID],-99999) & " And [Subject]='Art & Design' And [PlacementStage] =
'First Placement'")
This produces a value like 1 or 2 or3 and is left blank if no value is found
by the DLookup. I then have another Totals text field that just adds the
values of these text fields together, using the calculation =[Text1]+[Text2]
etc. This works OK until I include a text field, in the calculation, that is
blank. This then produces a blank entry in the Totals field. Can anyone see a
way around this? I'd prefer not to have 0 appearing in my text fields where
the DLookup finds no value but if I have to, fair enough.
Thanks for any help. JohnB
text fields together. Each of the text fields (set to format General Number)
is fed from a DLookup like this:
=DLookUp("TotalPlacements","qrySECCountOfPlacements","[SchoolID] = " &
Nz([SchoolID],-99999) & " And [Subject]='Art & Design' And [PlacementStage] =
'First Placement'")
This produces a value like 1 or 2 or3 and is left blank if no value is found
by the DLookup. I then have another Totals text field that just adds the
values of these text fields together, using the calculation =[Text1]+[Text2]
etc. This works OK until I include a text field, in the calculation, that is
blank. This then produces a blank entry in the Totals field. Can anyone see a
way around this? I'd prefer not to have 0 appearing in my text fields where
the DLookup finds no value but if I have to, fair enough.
Thanks for any help. JohnB