Hi, I am having trouble getting SQL-data by using VBA.
Everything Works fine until I use the "inner Join"-sql command.
Basicly I want to exctract the newest updates from a employee table. The table would look something like this:
EmployeeNo ChangeNo EmploymentStatus FromDate 1 10 Working 01.01.2014 2 11 Working 01.02.2014 2 12 Sick 01.03.2014 1 13 Quit 01.03.2014
The ChangeNo is a PK, and will increase for each New row in the table.
I want the Query to understand that the ChangeNo 12 and 13 is the largest, and then display EmployeeNo, ChangeNo, EmploymentStatus and FromDate for the row With ChangeNo 12 and 13.
To do this, I have tried to tweek an excelent macro by Carl.
Unfortunately, I am struggeling with the "inner join"-bit of my macro.
Please Login or Register to view this content.
Where did I go wrong?
Best regards
Habang
Bookmarks