Class "name" is not a Form class. (Error 2029)

The class you specify in the AS clause of CREATE FORM must be based on a Form class.