SQL syntaxs error :
The value for CodeName is "abb"
In the field [PAG] the value is "ggg_suppl_abb_"
If the part in this text on position eleven for 3 positions is equal to the value of Codename take the ID of this record.
Is it possible to use the mid function in the SQL string, if yes what is wrong, if not, how to ?
SQL = "SELECT [T-LOOKUP-PAG].[PAG-ID], [T-LOOKUP-PAG].[PAG] " _
& "FROM [T-LOOKUP-PAG] " _
& "WHERE ((([T-LOOKUP-PAG].mid([PAG],11,3)= CodeName); "
many txs in advance, pat
The value for CodeName is "abb"
In the field [PAG] the value is "ggg_suppl_abb_"
If the part in this text on position eleven for 3 positions is equal to the value of Codename take the ID of this record.
Is it possible to use the mid function in the SQL string, if yes what is wrong, if not, how to ?
SQL = "SELECT [T-LOOKUP-PAG].[PAG-ID], [T-LOOKUP-PAG].[PAG] " _
& "FROM [T-LOOKUP-PAG] " _
& "WHERE ((([T-LOOKUP-PAG].mid([PAG],11,3)= CodeName); "
many txs in advance, pat