S
Shotodru
Dear Friends,
I think I may have posted the question once before. Please excuse my
laziness as I cant seem to work around the problem.
I have a query which generates names and their corresponding figures in
three separate fields.
The first field in the query contains the names extracted from a table (say
tbl_customer), the second one field contains amounts extracted from the same
table (tbl_customer), the third field contains figures calculated on the
second field multiplied by a data appearing in another table (say
tbl_bonusrates).
As you may have guessed already, if I change the data in tbl_bonusrates, the
contents of all the records in the third field as outputted by the query
changes correspondingly.
Based on a DMAX operation I can select the highest figure existing in the
query from the third field. However, I also need to extract the names which
have the highest value. It may be just one name or it may be a large number.
For example, if the DMAX value returned from the third field in the query is
1000. There may be ten names which have 1000 standing correspondingly.
What I need to do, is to get those ten names or may be more/less into a text
box (say txt_DisplayHighestNames) on a form (say frm_DisplayDetails).
Can someone please help.
Best regards,
Satadru
I think I may have posted the question once before. Please excuse my
laziness as I cant seem to work around the problem.
I have a query which generates names and their corresponding figures in
three separate fields.
The first field in the query contains the names extracted from a table (say
tbl_customer), the second one field contains amounts extracted from the same
table (tbl_customer), the third field contains figures calculated on the
second field multiplied by a data appearing in another table (say
tbl_bonusrates).
As you may have guessed already, if I change the data in tbl_bonusrates, the
contents of all the records in the third field as outputted by the query
changes correspondingly.
Based on a DMAX operation I can select the highest figure existing in the
query from the third field. However, I also need to extract the names which
have the highest value. It may be just one name or it may be a large number.
For example, if the DMAX value returned from the third field in the query is
1000. There may be ten names which have 1000 standing correspondingly.
What I need to do, is to get those ten names or may be more/less into a text
box (say txt_DisplayHighestNames) on a form (say frm_DisplayDetails).
Can someone please help.
Best regards,
Satadru