>Hi,
>Does anyone ever find error 1929? THISFORM can only be used within a method. Does anyone have the solution for this error? Thank you.
As Holger says, you simply can't use ThisForm if you are running code that is not in a form.
If you moved some code, this may require some redesign.
For instance, when moving code from a form to a class, you may want to change ThisForm to This. In other cases, you may have an object reference to a form, passed to a function. In this case, change ThisForm to the name of the object (the receiving parameter).
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)