Solved

TRAINING DATABASE

Posted on 2014-12-11
2
104 Views
Last Modified: 2014-12-11
I HAVE A TRAINING DATABASE WITH THREE FIELDS, EMPID, DOCNAME, REV #, I ONLY WANT TO SEE THE LATEST REV THAT SOMEONE IS TRAINED TO.
0
Comment
Question by:Spikemom
2 Comments
 
LVL 33

Accepted Solution

by:
Mike Eghtebas earned 250 total points
ID: 40494403
Select [FIELDS], [EMPID], [DOCNAME], Max([REV #]) From Tavle1 Group By [FIELDS], [EMPID], [DOCNAME]

post some samples for  [REV #] field to make sure
0
 
LVL 51

Assisted Solution

by:HainKurt
HainKurt earned 250 total points
ID: 40494404
try this:

select t.* 
from training as t
inner join (select EMPID, max(REV) as maxrev from training group by EMPID) as tm
where t.empid=tm.empid and t.rev=tm.maxrev

Open in new window


(..) may be necessary, not sure

select t.* 
from (training as t
inner join (select EMPID, max(REV) as maxrev from training group by EMPID) as tm)
where t.empid=tm.empid and t.rev=tm.maxrev

Open in new window

0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now