Removing a field

J

Jacob Frankham

Hi

I have a report which has mainly numbers (Sums, Counts etc) on it

What I need to be able to do is (call the field [myField])

If [myField] = 0 then ignore the whole record


Now, the logical explanation would be to ensure that it wasn't in the query,
HOWEVER I need it in the query because I am using COUNT to create a total on
the number of records.

So, is there any way of 'not showing' any records where a certain field of
the record = 0 ?

Thanks in advance !

J
 
J

JoeElla

On the "ON Print" event of the report detail section add this code
if [myField]=0 then
let field1.visible=false (do this for each field of the record)
else
let field1.visible=true (same for all fields of record)
endif

There may be other ways, but this will work.
 
J

Jacob Frankham

Thanks guys !!!!!



JoeElla said:
On the "ON Print" event of the report detail section add this code
if [myField]=0 then
let field1.visible=false (do this for each field of the record)
else
let field1.visible=true (same for all fields of record)
endif

There may be other ways, but this will work.
Jacob Frankham wrote in message said:
Hi

I have a report which has mainly numbers (Sums, Counts etc) on it

What I need to be able to do is (call the field [myField])

If [myField] = 0 then ignore the whole record


Now, the logical explanation would be to ensure that it wasn't in the query,
HOWEVER I need it in the query because I am using COUNT to create a total on
the number of records.

So, is there any way of 'not showing' any records where a certain field of
the record = 0 ?

Thanks in advance !

J
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top