Import records

Hi
I’ve created 2 tables
Table 1 (Seg_users) created fields like:

login (varchar)
ID (int)
Nacimiento (date)
Sex (int)
Address (varchar)

Table 2 fields

login (varchar)
Cliente (int)
Sex (int)

I need to import in table 2 some data from table 1 when I select the login user (Cliente, for example). I’ve written this in the lookup:
SELECT ID
FROM Seg_users
WHERE ID={Cliente}
ORDER BY ID

I’ve also configured AJax on change in order to change Cliente value when login changes

Doesn’t work, and in other scriptcase application (v9) it did work. Could you help me please? Thanks