>Hello,
>
>I am getting the following error message (at random times):
> "THISFORM can only be used within a method."
>The reason that I think that it is weird, is that the line of code the error points to is within a program and
>does not have any references to "THISFORM" in it. The actual line of code from the program is:
> COUNT FOR tcBatch = Batch_name TO lnBatchTotal
>All of the variable references are local to this program and in no way refer back to a form method or property.
>
>Does this make sense? Has anyone else encountered any errors like this before? My concern is the
>randomness of the error and that a couple of people in our Test group are also getting it at times.
>
>When I get the error and go into the debugger, I am sitting on the aforementioned line of code. I then step
>into the next line of code and the program continues without a problem.
>
>Any thoughts or suggestions?
>
Does the table you are COUNTing in have a filter set to a form property? It looks like the table is trying to evaluate the records for a filter, and cannot resolve THISFORM.
Erik Moore
Clientelligence