P
Paul
I realise without the entire database there will be some guesswork
involved but I'm hoping to get a few things to check that could be the
cause of this phenomenon. I have a report displaying data from two
fields: [Hours] and [Fixed price]. Both fields are 'number' fields
using the 'single' field size. The data for both fields originate from
the same table and are 'quoted' in the same query. The report's record
source is this query and this query only. I only want the fields to
display if there is data so my text box controls have the following
control sources:
=IIf([FixedPrice]>0,[FixedPrice])
=IIf([Hours]>0,[Hours])
With the 'Fixed price' field this works fine but with the 'Hours' field
I get #Error. I assume there must be something different about the two
but can't find anything. Can anyone spot anything obvious that could be
the cause? (I have also tried the expressions
=IIf([FixedPrice]>0,[FixedPrice],)
=IIf([Hours]>0,[Hours],)
and
=IIf([FixedPrice]>0,[FixedPrice],"")
=IIf([Hours]>0,[Hours],"")
involved but I'm hoping to get a few things to check that could be the
cause of this phenomenon. I have a report displaying data from two
fields: [Hours] and [Fixed price]. Both fields are 'number' fields
using the 'single' field size. The data for both fields originate from
the same table and are 'quoted' in the same query. The report's record
source is this query and this query only. I only want the fields to
display if there is data so my text box controls have the following
control sources:
=IIf([FixedPrice]>0,[FixedPrice])
=IIf([Hours]>0,[Hours])
With the 'Fixed price' field this works fine but with the 'Hours' field
I get #Error. I assume there must be something different about the two
but can't find anything. Can anyone spot anything obvious that could be
the cause? (I have also tried the expressions
=IIf([FixedPrice]>0,[FixedPrice],)
=IIf([Hours]>0,[Hours],)
and
=IIf([FixedPrice]>0,[FixedPrice],"")
=IIf([Hours]>0,[Hours],"")