Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reccount() counts the deleted items
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00341313
Message ID:
00341319
Views:
27
You can use this in a function:

COUNT FOR !DELETED() TO lnRecordCount

>Hi everyone,
>
>It just occured to me that when I use the reccount() function or an SQL count function it counts the deleted entries (the ones with their "squares" black) and I don't want those included in my totals.
>
>Do I have to write a separate function or is there an existing command (something like SET DELETES OFF) that I can use in order to count ONLY the entries that are not deleted?
>
>And if I have to write a function, what kind of conditions have to be included in it?
>
>Thanks a lot in advance, Steph.
Chris McCandless
Red Sky Software
Previous
Reply
Map
View

Click here to load this message in the networking platform