I notice you are counting on field: TEDW_STMOVERALLSTATISTICS.AVAILSTATUS
I guess the data type of this field is bit or Boolean. That's why you are
getting True or Flase
So if you try to do count on another filed on same table, it may solve your
problem.
For example, if you have a field call ID in TEDW_STMOVERALLSTATISTICS
Then use the following code:
while {TEDW_STMOVERALLSTATISTICS.AVAILSTATUS}="1"
do Count ({TEDW_STMOVERALLSTATISTICS.ID})
Hope this will work for you.
Ming
Quote:
> Hello,
> I'm trying to create a function that returns a count of records based on
the
> value of the records. I can't get this to work. Here is the function I'm
> using:
> while {TEDW_STMOVERALLSTATISTICS.AVAILSTATUS}="1" do
> Count ({TEDW_STMOVERALLSTATISTICS.AVAILSTATUS})
> Instead if getting a value returned, I get a True or fales. I just want
to
> get a count based on the field and later use these value for manipulation.
> Any help would be appreciated.
> Matt