accessisnew
Technical User
I created a report from a table and it is working fine.
I have a field in the report header called “Source” and now I need to add a field in that header based on the value in the header field “Source”. The new report field is called “Text32”.
I created a table, “Source_Name” that has two columns, “Source” and “Source Name” so that I can do a lookup based on the value in the report header “Source”. I am trying to populate the new “Text32” field using the Control Source property of the new text box with the expression
=DLookup("Source_Name.[Source Name]", "Source_Name", "Source_Name.[Source]=Reports!reportname![Source]")
I keep getting an error in the new “Text32” field when I view the report.
Am I using the wrong technique? Is my syntax bad?
Any help or a pointer to an existing thread would help.
I have a field in the report header called “Source” and now I need to add a field in that header based on the value in the header field “Source”. The new report field is called “Text32”.
I created a table, “Source_Name” that has two columns, “Source” and “Source Name” so that I can do a lookup based on the value in the report header “Source”. I am trying to populate the new “Text32” field using the Control Source property of the new text box with the expression
=DLookup("Source_Name.[Source Name]", "Source_Name", "Source_Name.[Source]=Reports!reportname![Source]")
I keep getting an error in the new “Text32” field when I view the report.
Am I using the wrong technique? Is my syntax bad?
Any help or a pointer to an existing thread would help.