"name" can only be used within a method (Error 1929)

One of the following commands was used outside of a method: THIS, THISFORM, or THISFORMSET.

  • You used the statement in a procedure, but it can only be used within a method.

    Move the THIS,THISFORM, or THISFORMSET command into the appropriate method.