Hi Rabozza,
maybe try to start a total different approach: why not make a union query combining the logins and logouts in 1 dataset. Something like:
Code:
SELECT tblLogin.Host, tblLogin.IP, tblLogin.FullName, tblLogin.OperDate, tblLogin.OperTime, "Login" as flfType
FROM tblLogin
UNION
SELECT tblLogout.Host, tblLogout.IP, tblLogout.FullName, tblLogout.OperDate, tblLogout.OperTime, "Logout" as flfType
FROM tblLogout
ORDER BY tblLogin.OperDate, tblLogin.OperTime, tblLogin.Host, tblLogin.IP, tblLogin.FullName;
The sorting can be different, according to your needs of course. Then you can use this dataset as a base for a report (maybe use a crosstab?)
succes
NG