I have the following VB code which I am using to populate an unbound field called [Text896] which works fine
Me![Text896] = DLookup("[Benchmark Unit Rate]", "[Unit Rates]", "[Structure Type] = Forms![Structure Data Input].[Structure Type]"
However, I need to add further criteria so that the Dlookup is able to select unique rows from the lookup table. I have tried the following but need help with the correct syntax as this doesn't work??
Me![Text896] = DLookup("[Benchmark Unit Rate]", "[Unit Rates]", "[Structure Type] = Forms![Structure Data Input].[Structure Type] and [Package Type] = Forms![Structure Data Input].[Work Package]"
Thanks in advance
Osx
Me![Text896] = DLookup("[Benchmark Unit Rate]", "[Unit Rates]", "[Structure Type] = Forms![Structure Data Input].[Structure Type]"
However, I need to add further criteria so that the Dlookup is able to select unique rows from the lookup table. I have tried the following but need help with the correct syntax as this doesn't work??
Me![Text896] = DLookup("[Benchmark Unit Rate]", "[Unit Rates]", "[Structure Type] = Forms![Structure Data Input].[Structure Type] and [Package Type] = Forms![Structure Data Input].[Work Package]"
Thanks in advance
Osx