Well, the form is for a shipping document. I have for example, two fields (Document Number and Part Number), Three tables: 1. (DCU Log) A log with all of our Document Numbers, with fields part number and serial number.
2. (1348-1AS1) The table for the shipping documents. (Also the form name.) 3. (Q-ICRL) A list of all the part numbers.
When I type in the Document Number in the shipping document, Dlookup gets the part number from table 3 by what the part number is for that document number in table 1 and inserts it into the part number field on the shipping document form. (The part number field on the form contains the Dlookup control) Does that make sense?
However, not all the part numbers that are in table 1, are contained in table 3 and if it isn't, I get a blank part number field in the form. When this happens, I need to be able to manually input the part number. I do not want any limits on what is inputted in these fields. I would like to update table 3 upon entry of a new part number (There are several other fields that need to be updated in the same table with the part number). Here is an example of the control:
=DLookUp("[PART_NO]","Q-ICRL","[DCU LOG]![DOC#]=FORMS![1348-1AS1]![DDSN]"

(DDSN is the name of the Document Number field on the report.)
I hope that all makes sense. What do you think? Is there a better way to do this?