let the data base store the date/time info in any manner that's not the problem to calculate the lapsed period between the two times

is dataediff("n",fieldLogintime,fieldLogOuttime) is not working !
please post your SQL statement