Is there a way to execute a Dlookup command based on two values?
The current command is:
Forms![frmUserEntry]![DefectDescription] = DLookup("[DefectDescription]", "Tbltotaltestdata", "[MeasurementName] = Forms![frmUserEntry]!MeasurementName"
The name of the field that I need to add is called CKPCode1. To clarify I need the lookup to be based on the two values of CKPCode1 and MeasurementName at the same time.
The current command is:
Forms![frmUserEntry]![DefectDescription] = DLookup("[DefectDescription]", "Tbltotaltestdata", "[MeasurementName] = Forms![frmUserEntry]!MeasurementName"
The name of the field that I need to add is called CKPCode1. To clarify I need the lookup to be based on the two values of CKPCode1 and MeasurementName at the same time.