Yes, I tried. I feel really stupid because it sound like really easy and I
can't get it working.
This is what I have in the control source for the insurance:
=DLookUp("[Comprehensive]","[Comprehensive and collision]","[FinancedAmount]
= " & [From Amount] & " And [To Amount] <= " & [To Amount])
=DLookUp("[Collision]","[Comprehensive and collision]","[FinancedAmount] >=
" & [From Amount] & " And [To Amount] <= " & [To Amount])
But no matter what amount I typed in the "Financed Amount" field on the
form, it always bring me back the amount on the first record of the table.
Can you still help me?
You'll hate this... it looks like a simple typo, using [To Amount] <=
[To Amount] as the last criterion, which will of course always be
TRUE.
Try
=DLookUp("[Collision]", "[Comprehensive and collision]",
"[FinancedAmount] >= " & [From Amount] &
" And [FinancedAmount] <= " & [To Amount])
Or... maybe I misread it... if the [Comprehensive and collision] table
CONTAINS the From Amount and To Amount fields, turn it around:
=DLookUp("[Collision]", "[Comprehensive and collision]",
"[From Amount] <= " & [FinancedAmount] &
" And [To Amount] >= " & [FinancedAmount])
Of course if multiple records meet that criterion you'll see all of
them.
John W. Vinson[MVP]