I have 2 tables ( Sales and Customers ).
I put in a grid the fields code, custcode of table Sales. The field custcode of Sales is combobox in the grid and it has relation with the custcode of customers.
The combobox controlsource is sales.custcode, rowsourcetype is alias, rowsource is table customers.
Tabel customers has 3 records :
recno custcode custname
1 1 customer 1
2 2 customer 2
3 4 customer 3
The problem is that i choose the custcode 4 in the combobox.
When the combobox lost focus the fields data on the grid is now 3 not 4.
when i go again on that field in the grid it gets again 4.
I don't know what happens maybe it takes the recno.
How can i solve this problem.
I try this in a combo without a grid and it works fine.
Does anybody knows what happends ?
Thanks Michael
I put in a grid the fields code, custcode of table Sales. The field custcode of Sales is combobox in the grid and it has relation with the custcode of customers.
The combobox controlsource is sales.custcode, rowsourcetype is alias, rowsource is table customers.
Tabel customers has 3 records :
recno custcode custname
1 1 customer 1
2 2 customer 2
3 4 customer 3
The problem is that i choose the custcode 4 in the combobox.
When the combobox lost focus the fields data on the grid is now 3 not 4.
when i go again on that field in the grid it gets again 4.
I don't know what happens maybe it takes the recno.
How can i solve this problem.
I try this in a combo without a grid and it works fine.
Does anybody knows what happends ?
Thanks Michael