.compute function using radio buttons

bluestorylove

New Member
I am using code that calculates the average of exams where the module code is CSC3047 as shown below: \[code\]avgObject = gradeTable.Compute("avg(exam)", "module_ID = CSC3047")\[/code\]However i would like to calculate the average exam result where the module ID equals the selected value from a radio button which has a list of the modules.Something like this:\[code\]avgObject = gradeTable.Compute("avg(exam)", "module_ID = radioList.selectedValue")\[/code\]I know this is wrong but i have no idea how to accomplish this.
 
Top