RickBooker
Technical User
I have a Make table query that contains an expression (expr1)This gives me value called Performance% that I then want to Lookup on another table that shows a corrosponding BONUS amount for a 100 various Performance% numbers.<br><br>My expr1 gives me a value of 1.26<br>In the BonusPercentTable the bonus for 1.26 is 1.310<br>I want this 1.310 to be in a field in the table.<br>My Expr1 is:<br>Expr1: IIf([LaborwithRates]![WorkCenter]="13" Or [LaborwithRates]![WorkCenter]="14" Or [LaborwithRates]![WorkCenter]="15" Or [LaborwithRates]![WorkCenter]="16" Or [LaborwithRates]![WorkCenter]="25",Mid(((([LaborwithRates]![NetQuantity]/1000)*([LaborwithRates]![StandardHours]))/[LaborwithRates]![RunTimeHours]),1,4),""<br><br>My DLookup, which runs part way then just stops, no errors no nothing just stops:<br>Expr2: DLookUp("[Bonus]","BonusPercentTable","[Performance%]=Mid(((([LaborwithRates]![NetQuantity]/1000)*([LaborwithRates]![StandardHours]))/[LaborwithRates]![RunTimeHours]),1,4)"<br><br>If I remove the criteria section of the DLookup the query runs fine except that it only shows the first value in the BonusPercentTable, not the one that corrosponds to the 1.26 value.<br><br>Am I going at this all wrong, or am I not doing some correctly here?<br>Any suggestions would be greatly appreciated<br>RickB........... My apologies for the long question but I wasn't sure how else to ask it.<br>