Report calculation

J

John

I have access 2002.

I try to sum the a row in the detail section. I put a
calculation on report open. like this.

Report_Open()
{
Me.Controls("Hosp4").ControlSource = "[A1]"
Me.Controls("Hosp5").ControlSource = "[A2]"
Me.Controls("Hosp6").ControlSource = "=[A1]+[A2]"
}

if I comment out:

Me.Controls("Hosp6").ControlSource = "=[A1]+[A2]"

then Hosp4 and Hosp5 show correct number on the report. If
I put back the line:


Me.Controls("Hosp6").ControlSource = "=[A1]+[A2]"


Then All three controls show #name? on the report. What is
wrong with it? All controls in detail section.

Thanks
John
 

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