
February 9th, 2008, 03:53 AM
|
|
Registered User
|
|
Join Date: Feb 2008
Posts: 9
Time spent in forums: 1 h 12 m 4 sec
Reputation Power: 0
|
|
|
SQL - Calculate average in a form? or even query
Hiya i have a big problem. i need to calculate the average times of an individual swimmer but only when the stroke and distance is the same.
i.e my form looks like this (it is from a quer)
StrokeID Stroke Distance Time
FC Frontcrawl 100 1:00:00
FC Frontcrawl 100 1:10:00
The query makes sure that the stroke and distance are always the same for each view but how do i create a command button which averages these two times?
at the moment i have:
Dim curX as variant
curx = Avg("[Time]", "QryViewTimes]")
Text2.Text = curX
but this doesnt work.
|