Hi,
I am trying to get rid of all the calculated values in my database. Some of the calculations are quite complicated so I was wondering the following was possible.
Have a function like this...
Public Sub calcScore(q As Integer, q As Double)
If q = 1 Then
calcScore = q
Else
calcScore = 0
End If
End Sub
And then in the query...
Score: calcScore([StructuralQ1],[StructuralQ1Weight])
StructuralQ1 and StructuralQ1Weight are values in the query.
The error message is duplicate defination in current scope.
I have checked and "calcScore" doesnt appear anywhere else in the database.
If anyone can point me in the right direction, it would be greatly appreciated.
I am trying to get rid of all the calculated values in my database. Some of the calculations are quite complicated so I was wondering the following was possible.
Have a function like this...
Public Sub calcScore(q As Integer, q As Double)
If q = 1 Then
calcScore = q
Else
calcScore = 0
End If
End Sub
And then in the query...
Score: calcScore([StructuralQ1],[StructuralQ1Weight])
StructuralQ1 and StructuralQ1Weight are values in the query.
The error message is duplicate defination in current scope.
I have checked and "calcScore" doesnt appear anywhere else in the database.
If anyone can point me in the right direction, it would be greatly appreciated.