Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Subform - summarizing data

Status
Not open for further replies.

si013

MIS
Jul 18, 2003
9
GB
Can anyone help. I currently have a Subform (datasheet view) and i have three fields summarizing the data,
=count("*")
=avg([turnaround])
=sum([turnaround])

Once the form has been refreshed, i reference the three fields within VBA and i assign the values to three variables. But whenever the event is started, the variables are always set to 0. If i put a break point in the code and F8 through it, it will assign the values correctly.

Have also tried to refer to these field from the main field, but still if you let VBA it will just leave the fields blank, but again if you step through with F8 it will work?

Any ideas?
 
Are these 3 fields in the header or footer section ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
How are ya si013 . . . . .
si013 said:
[blue]But whenever the event is started, the variables are always set to 0. If i put a break point in the code and F8 through it, it will assign the values correctly.[/blue]
This is exactly what should happen unless your using Static variables.

Can you post the event/routine?


Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top