>Can anyone explain or give suggestions as to why the VFP compiler generates this error message when it comes across this piece of code?
>
>Error message: 'field' phrase is not found
>
>(code snippet)
>PUBLIC ofrmNew
>ofrmNew = CREATEOBJECT('frmNew') && <-- error at this line
>ofrmNew.Show
>
>Any help will be appreciated!
>Many thanks :)
>
>Mazlan Bin Mohammad
Mazlan,
That error is usually related to a list or combo that has a rwosourcetype of Fields and the rowsource is specified incorrectly. The most coommon error in the rowsource is using the alias on all the field names. For example if I want a list populated by Field1, Field2, and Field3 of the cursor MyTable, the rowsource would be;
MyTable.Field1, Field2, Field3
and not;
MyTable.Field1, MyTable.Field2, MyTable.Field3
the second one causes the field clause not found error.
So in conclusion go into your form class and checl out the lists and combos to be sure the rowsource is specified correctly.