M
Michael C
I have a query and I'm trying to sum a row of values and
am getting an error: Compile Error, Sub or Function not
defined...and it points to the word "Sum" below. Here's
the vba:
Set db = CurrentDb
Set rsData = db.OpenRecordset("SELECT * " & _
"FROM [qryData]")
MTDValue = Sum(rsData![T])
MTDPlanValue = Sum(rsData![TPlan])
MTDPercPlan = MTDValue / MTDPlanValue
Is there some other way to use the sum the values? Any
suggestions would be great. Thanks.
am getting an error: Compile Error, Sub or Function not
defined...and it points to the word "Sum" below. Here's
the vba:
Set db = CurrentDb
Set rsData = db.OpenRecordset("SELECT * " & _
"FROM [qryData]")
MTDValue = Sum(rsData![T])
MTDPlanValue = Sum(rsData![TPlan])
MTDPercPlan = MTDValue / MTDPlanValue
Is there some other way to use the sum the values? Any
suggestions would be great. Thanks.