Actually, when I enter the table name in the field foreignkey, it searches in the table but I get an error :
"no such column: tablename"
and all subsequent queries are stopped...
When using the script I get an error when using a search button using the scripted combobox as a source for the id because the SQL query does not know which table.column corresponds to the id retrieved.
near"=":syntax error
The query looks like this when using default search properties for a button (no use of script for the search) :
SELECT DISTINCT TABLE.COLUMN, etc....FROM TABLENAME WHERE=1
it should look like
SELECT DISTINCT TABLE.COLUMN, etc....FROM TABLENAME WHERE +COMBOBOX1.id+=1
Does that mean that I would have to write all my application using scripts?