Unwanted Parameter Prompts?

N

Nick CWT

I'm using the following expression in a text box on a report footer. When I
go to view report I'm getting Parameter prompts for Total JR CG1,3,2,and 4?
I'm used to seeing Parameter prompts for querys, so I'm stumped. I
appreciate any help. Thanks.

=Sum([Total JR CG1]+[Total JR CG3]+[Total JR CG2]+[Total JR CG4])
 
O

Ofer Cohen

Are the fields specified in the Sum are fields in the RecordSourec of the
report?

If they are not, then it will prompt for a field name.
 
N

Nick CWT

That worked, however that same expression is now giving me a nullvalue?
There are values in the fields being added but the field with that expression
is blank in the report? I appreciate any help you can give. Thanks.

Ofer Cohen said:
Are the fields specified in the Sum are fields in the RecordSourec of the
report?

If they are not, then it will prompt for a field name.

--
Good Luck
BS"D


Nick CWT said:
I'm using the following expression in a text box on a report footer. When I
go to view report I'm getting Parameter prompts for Total JR CG1,3,2,and 4?
I'm used to seeing Parameter prompts for querys, so I'm stumped. I
appreciate any help. Thanks.

=Sum([Total JR CG1]+[Total JR CG3]+[Total JR CG2]+[Total JR CG4])
 
O

Ofer Cohen

Use the Nz function to replace Null with 0

Sum(Nz([Total JR CG1],0)+Nz([Total JR CG3],0)+Nz([Total JR CG2],0)+Nz([Total
JR CG4],0))

But with the real field name
--
Good Luck
BS"D


Nick CWT said:
That worked, however that same expression is now giving me a nullvalue?
There are values in the fields being added but the field with that expression
is blank in the report? I appreciate any help you can give. Thanks.

Ofer Cohen said:
Are the fields specified in the Sum are fields in the RecordSourec of the
report?

If they are not, then it will prompt for a field name.

--
Good Luck
BS"D


Nick CWT said:
I'm using the following expression in a text box on a report footer. When I
go to view report I'm getting Parameter prompts for Total JR CG1,3,2,and 4?
I'm used to seeing Parameter prompts for querys, so I'm stumped. I
appreciate any help. Thanks.

=Sum([Total JR CG1]+[Total JR CG3]+[Total JR CG2]+[Total JR CG4])
 
N

Nick CWT

Thanks Ofer. It got me on the right track and solved the problem. Peace.

Ofer Cohen said:
Use the Nz function to replace Null with 0

Sum(Nz([Total JR CG1],0)+Nz([Total JR CG3],0)+Nz([Total JR CG2],0)+Nz([Total
JR CG4],0))

But with the real field name
--
Good Luck
BS"D


Nick CWT said:
That worked, however that same expression is now giving me a nullvalue?
There are values in the fields being added but the field with that expression
is blank in the report? I appreciate any help you can give. Thanks.

Ofer Cohen said:
Are the fields specified in the Sum are fields in the RecordSourec of the
report?

If they are not, then it will prompt for a field name.

--
Good Luck
BS"D


:

I'm using the following expression in a text box on a report footer. When I
go to view report I'm getting Parameter prompts for Total JR CG1,3,2,and 4?
I'm used to seeing Parameter prompts for querys, so I'm stumped. I
appreciate any help. Thanks.

=Sum([Total JR CG1]+[Total JR CG3]+[Total JR CG2]+[Total JR CG4])
 

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