G
Gale Coleman
Hello all,
Using Access 2000.
I received help from you wonderful folks to trim a field in a table like so:
SELECT CLIENTSW.CASENUM, IIf(Mid([CaseNum],4),Left([CaseNum],0) &
Right([CaseNum],7),[CaseNum]) AS TempCaseNum
FROM CLIENTSW
WHERE (((CLIENTSW.CASENUM) Like "04*"));
This works exactly as I want it to.
I then went on Google and found how to create a report that will show the
numbers that are out of Sequence:
http://support.microsoft.com/default.aspx?scid=kb;en-us;210234
I put the following code in a report based on the above query:
Dim GlobalFlag as Variant
Function SetFlag(x as Variant)
If GlobalFlag <> x - 1 then
SetFlag = "*"
Else
SetFlag = ""
End If
GlobalFlag = x
End Function
I added a textbox with the name of Out of Sequence and a control source =
SetFlag([TempCaseNum])
I run the report and get no * where there are missing numbers. I put in a
number out of sequence to test it and it is not working. What am I doing
wrong?
Gale
Using Access 2000.
I received help from you wonderful folks to trim a field in a table like so:
SELECT CLIENTSW.CASENUM, IIf(Mid([CaseNum],4),Left([CaseNum],0) &
Right([CaseNum],7),[CaseNum]) AS TempCaseNum
FROM CLIENTSW
WHERE (((CLIENTSW.CASENUM) Like "04*"));
This works exactly as I want it to.
I then went on Google and found how to create a report that will show the
numbers that are out of Sequence:
http://support.microsoft.com/default.aspx?scid=kb;en-us;210234
I put the following code in a report based on the above query:
Dim GlobalFlag as Variant
Function SetFlag(x as Variant)
If GlobalFlag <> x - 1 then
SetFlag = "*"
Else
SetFlag = ""
End If
GlobalFlag = x
End Function
I added a textbox with the name of Out of Sequence and a control source =
SetFlag([TempCaseNum])
I run the report and get no * where there are missing numbers. I put in a
number out of sequence to test it and it is not working. What am I doing
wrong?
Gale