I thought I found a workaround to my �tablecount� problem that I posted a few weeks ago, I�m not that lucky. Someone please show me what I'm doing wrong.

To go over the problem again, with added tests:

The �TABLECOUNT� command when used with an Active Link Table to a MySQL database fails, it works fine when I use a Passive Link to the same table. I started to reduce the complexity of the arguments and ended with:

? tablecount(�test556�,�Test1 = �1��)
=0 (should be a 3)

When I run;
? tablecount("test556", ".T.")
= <No data returned> ??

when I execute the code:

? reccount("test556")
= 3 (the correct number)

I�ve run the command ? A5_GET_RECORDS_IN_QUERY((�test556�,�Test1 = �1��)
= 3 (the correct number)

I�ve run a Trace SQL on the commands and get;

For the tablecount command
SELECT DISTINCT count(*) FROM test556 WHERE(test1= �1�) LIMIT 1

For the A5_GET_RECORDS_IN_QUERY
SELECT count(*) FROM test556 WHERE(test1= �1�)

All other functions that I've tried using the Active Linked tables seem fine.

I loaded A5V9 on a clean PC to insure that I did not have a corrupt OS, A5 app, same problem :-(

The MySQL Admin has given me all rights to the folder the data is in. The version of MySQL is 5.0.27. .

Mike T.