C
Crystal Sharp
I copied this function's code from a MSDN sample and it worked in report. But
it does not work when I use it in query. Can someone help me modify it?
Thanks in advance.
The purpose of the function is to mark a record that is out of sequence with
*: 1, 2, *4, 5, *7
Dim GlobalFlag As Variant
Public Function SetFlag(x As Variant)
If GlobalFlag <> x - 1 Then
SetFlag = "*"
Else
SetFlag = " "
End If
GlobalFlag = x
End Function
it does not work when I use it in query. Can someone help me modify it?
Thanks in advance.
The purpose of the function is to mark a record that is out of sequence with
*: 1, 2, *4, 5, *7
Dim GlobalFlag As Variant
Public Function SetFlag(x As Variant)
If GlobalFlag <> x - 1 Then
SetFlag = "*"
Else
SetFlag = " "
End If
GlobalFlag = x
End Function