#Error in total fields of form

G

Guest

Hi,
how can I avoid the appearing of #Error in the total field in a form footer.
It is a calculated field like =sum(Invoice) and shows correctly in the first
place and #Error after resorting the form.
Thanks in advance.
Norbert Meiss
 
G

Guest

If this is a case of an empty recordset resulting in the #Error then place
the following in the control sources of your concerning objects:

Iif([HasData],Sum([Invoice]),"0.00")

HTH
 
G

Guest

Unfortunately not. Any record contains a valid value. The #error appears
after resorting.

ashg657 said:
If this is a case of an empty recordset resulting in the #Error then place
the following in the control sources of your concerning objects:

Iif([HasData],Sum([Invoice]),"0.00")

HTH
--
Ash
Don''t forget to rate as helpful if I have helped you,Thanks!
(e-mail address removed)


Norbert Meiss said:
Hi,
how can I avoid the appearing of #Error in the total field in a form footer.
It is a calculated field like =sum(Invoice) and shows correctly in the first
place and #Error after resorting the form.
Thanks in advance.
Norbert Meiss
 
G

Guest

The only thing I can suggest is requerying the calculated field. For example,
after your re-sorting in VBA coding type the following line:

YourControl.Requery

Other than that, I dont know, I'm sure someone else will respond on here
shortly...

HTH
--
Ash
Don''t forget to rate as helpful if I have helped you,Thanks!
(e-mail address removed)


Norbert Meiss said:
Unfortunately not. Any record contains a valid value. The #error appears
after resorting.

ashg657 said:
If this is a case of an empty recordset resulting in the #Error then place
the following in the control sources of your concerning objects:

Iif([HasData],Sum([Invoice]),"0.00")

HTH
--
Ash
Don''t forget to rate as helpful if I have helped you,Thanks!
(e-mail address removed)


Norbert Meiss said:
Hi,
how can I avoid the appearing of #Error in the total field in a form footer.
It is a calculated field like =sum(Invoice) and shows correctly in the first
place and #Error after resorting the form.
Thanks in advance.
Norbert Meiss
 
G

Guest

Hi,
thanks for your reply. Actually I cannot find a point (or event) where to
requery the control since we don't use VBA, but the contect menu commands for
resorting...
Maybe I should mention that we use SQL Server 2000 as underlying database
but I cannot see that this would make a difference.
Regards,
Norbert

ashg657 said:
The only thing I can suggest is requerying the calculated field. For example,
after your re-sorting in VBA coding type the following line:

YourControl.Requery

Other than that, I dont know, I'm sure someone else will respond on here
shortly...

HTH
--
Ash
Don''t forget to rate as helpful if I have helped you,Thanks!
(e-mail address removed)


Norbert Meiss said:
Unfortunately not. Any record contains a valid value. The #error appears
after resorting.

ashg657 said:
If this is a case of an empty recordset resulting in the #Error then place
the following in the control sources of your concerning objects:

Iif([HasData],Sum([Invoice]),"0.00")

HTH
--
Ash
Don''t forget to rate as helpful if I have helped you,Thanks!
(e-mail address removed)


:

Hi,
how can I avoid the appearing of #Error in the total field in a form footer.
It is a calculated field like =sum(Invoice) and shows correctly in the first
place and #Error after resorting the form.
Thanks in advance.
Norbert Meiss
 

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