Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Empty table?

Status
Not open for further replies.

FoxKid

MIS
Jun 8, 2003
92
IN
Is there any single command to know that the table is empty i.e. having no records
I want to use it in if command as

if <table is empty>
do something
do something
endif

Is it possible? I don't to do it like this
sele xyz
go top
if !eof()
do something
do something
endif

Thanks and Regards
 
IF RECCOUNT() = 0 should do what you want. You can pass an alias to RECCOUNT() if the table you're interested in isn't the currently selected alias.



-BP
 
Thanks for your replies
But Sorry,
It also takes the deleted records even if I set deleted on
It will not work.

Any other idea...

Thanks and Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top