D
Don
Thanks in advance to any insight someone might be able to
lend. Hopefully, I can explain myself well here......
Let's say I have the following data in a table with fields
(NAME, POSITION and ACHIEVED DATE)
Don, Associate, 6/1/01
Don, Counsel, 7/11/02
Don, Director, 10/1/03
Kate, Associate, 8/1/01
Kate, Counsel, 7/11/03
Kate, Director, 10/1/03
I have a form with a text box, and I want to create a
query that shows everyones position as of a particular
date.
So if I enter 12/31/02 in this text box, I want to see
Counsel for Don (with the achieved date of course), and
see Associate for Kate.
I first tried to enter criteria in the Date Field
<=[TEXTBOXVALUE], but that of course will give MUITIPLE
VALUES for Don, which is what I don't want. I want the
MAX or HIGHEST value for each Name before the entry date.
I am somewhat at a loss here. I tried the GROUP BY but
could not find anything that worked. It looks as if maybe
I'll need VBA that cycles through a recordset and then
gets the last value? Can anyone lend any insight?
Thanks,
Don
lend. Hopefully, I can explain myself well here......
Let's say I have the following data in a table with fields
(NAME, POSITION and ACHIEVED DATE)
Don, Associate, 6/1/01
Don, Counsel, 7/11/02
Don, Director, 10/1/03
Kate, Associate, 8/1/01
Kate, Counsel, 7/11/03
Kate, Director, 10/1/03
I have a form with a text box, and I want to create a
query that shows everyones position as of a particular
date.
So if I enter 12/31/02 in this text box, I want to see
Counsel for Don (with the achieved date of course), and
see Associate for Kate.
I first tried to enter criteria in the Date Field
<=[TEXTBOXVALUE], but that of course will give MUITIPLE
VALUES for Don, which is what I don't want. I want the
MAX or HIGHEST value for each Name before the entry date.
I am somewhat at a loss here. I tried the GROUP BY but
could not find anything that worked. It looks as if maybe
I'll need VBA that cycles through a recordset and then
gets the last value? Can anyone lend any insight?
Thanks,
Don