I am working from a form to an external table not in a set with the form table.
this is the help file example:
TABLECOUNT("PURCHASE.DBF","MANAGER = '" + vManager + "' ")
this what I wrote:
tablecount("Children.dbf ","ChClient_Id=' "+VClientId+" ' ")
this is the error that is sent back
Error:
expression_result= eval("tablecount('children.dbf','chlient_id='[unknown DOS error]C:\alpha Databases\Wills1\+VClientId+.dbf
I don�t understand this error except it seems there is something wrong with the variable desription.
if I write:
tablecount("Children.dbf ",".T.")
My script will correctly get the number of records in the table on the form and in the external "children" table
using the xbasic enter record action which is what the rest of the script is about. So that seems to work.
but I need to get the count of records just for a particular client not the whole table.
in the action script I set the client Id on the form to a variable
then I set the N relationcount field which is done through the action script to the tablecount function using the variable
but I can never get it to work even though I can get a 0 on the expression builder as a result which is the wrong count.
I can only think there is something wrong with the varible description, syntax, refresh or I don`t know
I have tried all kinds of things to no avail.
any insight will be appreciated
Thanks George Kenney
this is the help file example:
TABLECOUNT("PURCHASE.DBF","MANAGER = '" + vManager + "' ")
this what I wrote:
tablecount("Children.dbf ","ChClient_Id=' "+VClientId+" ' ")
this is the error that is sent back
Error:
expression_result= eval("tablecount('children.dbf','chlient_id='[unknown DOS error]C:\alpha Databases\Wills1\+VClientId+.dbf
I don�t understand this error except it seems there is something wrong with the variable desription.
if I write:
tablecount("Children.dbf ",".T.")
My script will correctly get the number of records in the table on the form and in the external "children" table
using the xbasic enter record action which is what the rest of the script is about. So that seems to work.
but I need to get the count of records just for a particular client not the whole table.
in the action script I set the client Id on the form to a variable
then I set the N relationcount field which is done through the action script to the tablecount function using the variable
but I can never get it to work even though I can get a 0 on the expression builder as a result which is the wrong count.
I can only think there is something wrong with the varible description, syntax, refresh or I don`t know
I have tried all kinds of things to no avail.
any insight will be appreciated
Thanks George Kenney
Comment