I have a text box control on a form. I would like this text box to display a value from a table that is not the form's record source. To do this, I am attempting a DLookUp expression. The table that contains this target is called DateCodes. The field that I would like returned is called OutputDateCode. I would like the OutputDateCode that matches the CartonDateForma t for each record to be returned in the text box.For example, if CartonDateCode= 13, I would like the text box to return the OutputDateCode from record 13 in the DateCodes table. I cannot figure out what is wrong with the expression that I have written and was hoping someone might be able to help me pinpoint the problem. Here is what I have written:
I am working in Microsoft Access 2010.
Code:
=DLookUp(" [OutputDateCode]","[DateCodes]","[CatonDateFormat] =" & [Forms]![ProductionReportLandscape]![CartonDateFormat])
Comment