Hello,
It might be a simple question but I don't know how to solve this:
First:
I've created a simple query which gives me the result for a given user input "p".
Result looks like:
Now I've a second query.
I would like to get the value for discount from the query above by "putting in p"
Can anyone help me please how to solve this?
Thanks
It might be a simple question but I don't know how to solve this:
First:
I've created a simple query which gives me the result for a given user input "p".
Code:
SELECT TOP 1 val1
FROM tblPerson
WHERE( (val2)<=[p] )
ORDER BY val2 DESC;
Result looks like:
...|..val1...
...| 12345
Now I've a second query.
I would like to get the value for discount from the query above by "putting in p"
Code:
Field.......level......... discount
Table.......adbCases...... qryDiscountGet
Total.......expression.....Group By
Criteria...................[p]=[level]
Can anyone help me please how to solve this?
Thanks