H
Hitesh Chauhan
Hi,
I am having a user defined function in module. i want to call in my select
statement. is it possible. if yes How?
Function Slab(SlabVal As Integer)
If SlabVal > 0 And SlabVal <= 20 Then
Slab = 1
ElseIf SlabVal > 20 And SlabVal <= 50 Then
Slab = 2
ElseIf SlabVal > 50 And SlabVal <= 100 Then
Slab = 3
ElseIf SlabVal > 100 Then
Slab = 4
End If
End Function
the above function i want to call in select statement like
select SlbValue,slab(slbvalue) from Incentive
regards,
hiteshc
I am having a user defined function in module. i want to call in my select
statement. is it possible. if yes How?
Function Slab(SlabVal As Integer)
If SlabVal > 0 And SlabVal <= 20 Then
Slab = 1
ElseIf SlabVal > 20 And SlabVal <= 50 Then
Slab = 2
ElseIf SlabVal > 50 And SlabVal <= 100 Then
Slab = 3
ElseIf SlabVal > 100 Then
Slab = 4
End If
End Function
the above function i want to call in select statement like
select SlbValue,slab(slbvalue) from Incentive
regards,
hiteshc