I have:
Table1:
PK - Primary Key
FK - a code field
OS - Other stuff
Table2:
FK - Primary Key of this table, Foreign Key to Table1
D - Description of the code in FK
I have a form, frmTable1, for viewing and editing Table 1, in continuous forms mode. I want to show on each instance of frmTable1:
PK FK D OS
That is, while looking at and editing the Table1 records, the user should be able to view the description for code FK.
So, I created an unbound textbox for D, and a query to look up the value. The query is triggered on frmTable1.Current and frmTable1.FK.Change.
BUT...when I move the returned value to frmTable1.D, D changes to this value on ALL visible instances of the form. Obviously, it should be different on different instances.
I would prefer not to have to resort to a single textbox to display the description for the _current_ instance of the form: it's better if the user can see descriptions for all visible records simultaneously.
How do I achieve this?
TIA.
Table1:
PK - Primary Key
FK - a code field
OS - Other stuff
Table2:
FK - Primary Key of this table, Foreign Key to Table1
D - Description of the code in FK
I have a form, frmTable1, for viewing and editing Table 1, in continuous forms mode. I want to show on each instance of frmTable1:
PK FK D OS
That is, while looking at and editing the Table1 records, the user should be able to view the description for code FK.
So, I created an unbound textbox for D, and a query to look up the value. The query is triggered on frmTable1.Current and frmTable1.FK.Change.
BUT...when I move the returned value to frmTable1.D, D changes to this value on ALL visible instances of the form. Obviously, it should be different on different instances.
I would prefer not to have to resort to a single textbox to display the description for the _current_ instance of the form: it's better if the user can see descriptions for all visible records simultaneously.
How do I achieve this?
TIA.