Thank you folks for your time and assistance, as NeoPa pointed out the question was unclear and for that I apologize, in any event I'll try to clarify the question.
Here's the situation:
I have a mdb that is used to keep track of monthly transactions. The months are Hebrew months (why they use Hebrew months, I haven't got a clue, but I can't question my superiors) the function used to convert from the Gregorian date returns a string containing the Hebrew month, which is essentially all we need since the transactions are monthly, and there is no more than one transaction per client per Hebrew month.
and so the question is:
How can I retrieve the last 3 transactions (based on the order of the Hebrew months) to take place for each ID.
The names of the Hebrew months are the following (and for my purpose in this order) Tishrei, Cheshvan, Kislev, Tevet, Shvat, Adar I, Adar II, Nissan, Iyar, Sivan, Tammuz, Av, Elul.
Sample data would be:
the results returned should be (and in this order):
I was hoping to avoid the need to get into the real details since the Hebrew months are not what we use, but if this will help clarify my question it was worth it.
Here's the situation:
I have a mdb that is used to keep track of monthly transactions. The months are Hebrew months (why they use Hebrew months, I haven't got a clue, but I can't question my superiors) the function used to convert from the Gregorian date returns a string containing the Hebrew month, which is essentially all we need since the transactions are monthly, and there is no more than one transaction per client per Hebrew month.
and so the question is:
How can I retrieve the last 3 transactions (based on the order of the Hebrew months) to take place for each ID.
The names of the Hebrew months are the following (and for my purpose in this order) Tishrei, Cheshvan, Kislev, Tevet, Shvat, Adar I, Adar II, Nissan, Iyar, Sivan, Tammuz, Av, Elul.
Sample data would be:
Code:
ClientID TransactionNumber TransactionHMonth 1 6511216 Kislev 1 5332573 Tishrei 1 9849528 Sivan 1 5374530 Av 1 5711675 Nissan 1 4001184 Iyar 2 9087526 Iyar 2 6524824 Kislev 2 5376892 Nissan 2 5327891 Sivan 2 6423568 Av 2 5379827 Tishrei
Code:
ClientID TransactionNumber TransactionHMonth 1 4001184 Iyar 1 9849528 Sivan 1 5374530 Av 2 9087526 Iyar 2 5327891 Sivan 2 6423568 Av
Comment