ok this is little bit frustrating. can someone please explain this issue
Function fMod() As Date
fMod= Nz(DLookup("DateModified", "tblUsers", "UserID = " & fUserID))
End Function
msgbox fMod (value = '12:00:00 AM') - wrong value
msgbox Nz(DLookup("DateModified", "tblUsers", "UserID = " & fUserID)) (value = '10/24/2012 5:15:00 PM) - correct value