shawnacker
Registered User.
- Local time
- Today, 19:10
- Joined
- May 4, 2001
- Messages
- 15
I have searched for days and not been able to find an answer to a supposedly easy question.
I have a continuous form "Entry_Form" based off a table called "Today". I want to add additional criteria to the table using the form and have created a combo box that is based on a separate table called "Reason_Codes". "Reason Codes" has two fields "ID" and "Description".
When selecting the combo box "ID_Selector" I populate one of the fields on the form which then populates the corresponding field on the table. This works.
My problem is that I want to have a text box on the form called "Description_Code" populated automatically the "Description" based the ID chosen.
I have created the following DLookUp equation and placed it into the Control Source, but nothing is populated in the "Description_Code" field.
=DLookUp("[Description]","[Reason_Codes]","[ID] = Forms![Entry_Form]!ID_Selector")
Needless to say, I have tried dozens of varieties, but to no avail. Is DLookUp the proper function? What am I doing wrong?
Any help would be greatly appreciated.
Thank you,
Shawn
I have a continuous form "Entry_Form" based off a table called "Today". I want to add additional criteria to the table using the form and have created a combo box that is based on a separate table called "Reason_Codes". "Reason Codes" has two fields "ID" and "Description".
When selecting the combo box "ID_Selector" I populate one of the fields on the form which then populates the corresponding field on the table. This works.
My problem is that I want to have a text box on the form called "Description_Code" populated automatically the "Description" based the ID chosen.
I have created the following DLookUp equation and placed it into the Control Source, but nothing is populated in the "Description_Code" field.
=DLookUp("[Description]","[Reason_Codes]","[ID] = Forms![Entry_Form]!ID_Selector")
Needless to say, I have tried dozens of varieties, but to no avail. Is DLookUp the proper function? What am I doing wrong?
Any help would be greatly appreciated.
Thank you,
Shawn