Last OFF

Waqas ali

Board Regular
Joined
Nov 6, 2010
Messages
163
Dear all,

i have emp table.in this table employees have off in different dates.
now i want to build a query that inwhich date an employee got his last off.

for example one employee got off 01 aug , 10 aug,18 aug and 24 aug
how can i know his last off in 24 aug:rolleyes:
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Take a look at creating an Aggregate Query (details in Access help).

If you add the name and date fields to the query, and click on the Totals button, it will add a Totals line with the words Group By under each of the two fields. Changed the "Group By" under the date field to "Max" and it should give you want you want (the latest date for each person).
 
Upvote 0
thanks i go it.

how can i get below option in access? can i record macro in access?:rolleyes:
A lot of VBA code can be acquired by using the Macro Recorder.
 
Upvote 0
how can i get below option in access
Not sure what you mean. Can you explain, maybe give an example of what you want?
can i record macro in access?:rolleyes:
A lot of VBA code can be acquired by using the Macro Recorder.
There is no Macro Recorder in Access, but there is a Macro section to create macros. You can then in turn convert those macros to VBA (there is an option on the Macros toolbar/ribbon to "Convert Macros to Visual Basic").
 
Upvote 0

Forum statistics

Threads
1,224,552
Messages
6,179,487
Members
452,917
Latest member
MrsMSalt

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top