robert_anisoiu
Registered User.
- Local time
- Today, 08:43
- Joined
- Oct 27, 2010
- Messages
- 10
Hello,
I have a problem and I don't know how to solve it.
I have a table, Table1, with three fileds: Table1FieldId, Table1FieldName, Table1FieldNumber.
I have another table, Table2 with: Table2FieldId, Table1FieldId, Table1FieldNumber
On the form attached to Table2 the Table1FieldId is in a combobox. The displayed value in the combobox is Table1FieldName and the controlsource of the combobox is set to Table1FieldId.
I want, when I select an item from this combobox, the textbox with Table1FieldNumber to be filled with the corresponding value(value of Table1FieldNumber) from Table1.
I tried with LostFocus event, AfterUpdate event, DLOOKUP and so on. I was not able to read the Table1FieldNumber from Table1 and to put this information in the textbox value.
Please give me some ideas.
Regards,
Robert
I have a problem and I don't know how to solve it.
I have a table, Table1, with three fileds: Table1FieldId, Table1FieldName, Table1FieldNumber.
I have another table, Table2 with: Table2FieldId, Table1FieldId, Table1FieldNumber
On the form attached to Table2 the Table1FieldId is in a combobox. The displayed value in the combobox is Table1FieldName and the controlsource of the combobox is set to Table1FieldId.
I want, when I select an item from this combobox, the textbox with Table1FieldNumber to be filled with the corresponding value(value of Table1FieldNumber) from Table1.
I tried with LostFocus event, AfterUpdate event, DLOOKUP and so on. I was not able to read the Table1FieldNumber from Table1 and to put this information in the textbox value.
Please give me some ideas.
Regards,
Robert