0

Where is the error ?

Hi,

 

I wrote this script for a button to link values between to tables :

 

do as server

for i in select Table2 do

let myRec:= i. 'Couleur'

let mySup:= first( select Couleur  [ Couleur = myRec] )

i. ('Lien T2 à T2':=mySup)

end

end

 

I get this error :

 

"A table has not been found : Couleur on the line 4, column 36"

 

Thanks, if you can to tell me where you think that could be this error.

1 reply

null
    • Fred
    • 3 yrs ago
    • Reported - view

    Do you have a field Couleur in the table Couleur? That is what Line 4 says. In another way you wrote:

    let mySup := first(select Couleur where Couleur = myrec)