nested query

E

Excel-Learner

I have a table that contains Emplid, date, action data as below
Emplid, date, action
2000, 01/01/2007, PAY
2000, 02/02/2007, LEAVE
2001, 03/01/2006, HIRE

I am trying to write MS query in Excel that would fetch me for any emplid
given at runtime and with maximum date.

when I run the query it should ask me to input emplid (e.g 2000) and
expected result should return as below
2000, 02/02/2007, LEAVE

when I rerun the query with different emplid it should give me highest date
row.

your help is appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top