This is one of the more poorly worded error messages in VFP. What’s worse is when you look up this error in the online help, this is what it tells you:
The field specified in PROMPT field was not found.
You are using a command with a PROMPT clause that references an unknown field.
You probably weren’t doing anything at all with a PROMPT command when you got this error, and you’re really scratching your head wondering what on earth this means. This error should have been worded “RowSource is invalid”, because that’s what it’s really trying to tell you.
If you happened to search the knowledge base instead, you probably found article Q133024, which does help you solve this problem. That article says:
This is caused by incorrect syntax in the list of fields in the RowSource property. The documentation and online Help imply that the correct way to list fields in this property is:
Table1.field1, Table1.field2, Table1.field3, ...
This is incorrect. The correct syntax is:
Table1.field1, field2, field3, ...
Any deviation from this syntax (using an expression instead of a field name, trying to use fields from multiple or related tables, and so on) results in the same error message.
Keep in mind that any typo in the field name list causes this error to occur. And while we’re talking about field names, you should know that just specifying the alias without explicitly listing each field doesn’t work either.
Another cause of this error is using a RowSource of “2 – Alias” for a combobox or listbox when the alias isn’t open in the current data session.
I’ve even seen this error occur when I had left the RowSourceType as “3 – SQL Statement”, but changed the RowSource to an array.