error" the expression code cannot be type converted to integer value" why

The link between two table is “sell to customer no”