This is weird behaviour;
I have a field idtbl_customer of type integer. It is the basis of a SELECT.
I changed the database schema for the SELECT LOOKUP SQL statement. At this point expected errors occured. I corrected the erroneous code, but the error persisted.
In desperation & exasperation I reverted the field in General Setting > Data Type to INTEGER to see if at least the without the SELECT LOOKUP I’d get a clean compile.
The error persisted:
SQL ERROR’s:
Field:idtbl_customers SELECT CONCAT( tbl_customers.customername,’ ‘, tbl_customers.company,’ ‘, tbl_postcodes.town,’ ', tbl_postcodes.postcode) AS detail FROM tbl_customers LEFT OUTER JOIN tbl_postcodes ON tbl_customers.idtbl_postcodes = tbl_postcodes.idtbl_postcodes ORDER BY tbl_customers.customername
(Unknown column ‘tbl_customers.customername’ in ‘field list’)
Field:idtbl_customers SELECT CONCAT( tbl_customers.customername,’ ‘, tbl_customers.company,’ ‘, tbl_postcodes.town,’ ', tbl_postcodes.postcode) AS detail FROM tbl_customers LEFT OUTER JOIN tbl_postcodes ON tbl_customers.idtbl_postcodes = tbl_postcodes.idtbl_postcodes ORDER BY tbl_customers.customername
(Unknown column ‘tbl_customers.customername’ in ‘field list’)
Field:idtbl_customers is NOT a SELECT field, yet fatal errors involving the original SELECT SQL persist. Note also that the error is listed twice.
The only work-around (kludge) I have found is to delete the whole form and start again.