I have a table (tblAD) that stores "DocNumber" and "Description" information (i.e. AD-1001-001 = Widget).
I have a form (frmECO).
Two fields on this form are the focus of this question.
The first field is "DocNumber", the second field is "Description".
I want the "Description" field in the form to be automatically filled in with the description of the "DocNumber" based on the information from the table.
For example: I want the user to enter AD-1001-001 in the "DocNumber" field on the form (frmECO) and I want the "description" field automatically filled in with Widget.
I found the following code and have been trying to get it to work...unsuccessfully. Can anyone help?
=DLookUp("[Description]","tblAD","[DocumentNumber] = " & [Forms]![DocumentNumber])
Another thing that I am going to have trouble with is I have about 15 or so tables such as the "tblAD" that have "DocNumber" and "Description" information that I want to autofill based on the "DocNumber" entered on the form.
So, a user could type in AD-1001-001 on the form and the description would automatically fill in with Widget (as explained before), but I also want that same form to allow the user to type in say CD-2224-003 - from a table called "tblCD", and autofill with that particular numbers description. I hope all of this makes sense.
Thanks for your time!