473,405 Members | 2,349 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

capturing Log out time in table

Hi Guys,

I am new to Access creation, now am trying to create an Access which capture Log in and Log out for the data base.

Actually the problem is i don't know how to capture the Log out time.

There are two forms one is Log in form where i can capture the log in time and date and there is one main form where member update their details and in end of the day they will log out.The time and date of logging out must be captured.

Table where login and Log out time is captured:
Table Name: Logon_Capture
Fields:

ID
System_Name
User_Name
Logon_Date
Logout_Date
Logon_Time
Logout_Time

Please help me to get a VBA or update query to update the log out time while the usre log out from main form.

Sorry for the lengthy explanation.

Thank You!
Regards,
Vajeeth
May 9 '15 #1

✓ answered by Luuk

I don not see how my answer is going to help you,
but you asked for it:
Expand|Select|Wrap|Line Numbers
  1. UPDATE Logon_Capture 
  2.  SET Logout_Date = DATE(Now()),
  3.  SET Logout_Time = TIME(Now())
  4. WHERE UserNAme = 'vajeeth' AND Logout_Date IS NULL()
  5.  
This assumes that, when you logon, you do not fill the Logout_Date, and that NULL is allowed in that column.

3 2145
Luuk
1,047 Expert 1GB
I don not see how my answer is going to help you,
but you asked for it:
Expand|Select|Wrap|Line Numbers
  1. UPDATE Logon_Capture 
  2.  SET Logout_Date = DATE(Now()),
  3.  SET Logout_Time = TIME(Now())
  4. WHERE UserNAme = 'vajeeth' AND Logout_Date IS NULL()
  5.  
This assumes that, when you logon, you do not fill the Logout_Date, and that NULL is allowed in that column.
May 9 '15 #2
Hi lukk,

Thanks for the reply. But the problem is there are multiple operators will log in. If there is look up option to check the system name (window login name) and logon date (which is updated one logged into access) to update log out date it will be more accurate.

Please check if it is possible and I will work on the above code also.

Thank you!
May 10 '15 #3
NeoPa
32,556 Expert Mod 16PB
I suggest that you store the date and time values as a single value rather than split them across date and time.

I can say that determining who is logged in is no part of this question. That is a separate question to which there already a number of answers to be found on Bytes.com, but if you feel you need to you can ask again - but not in this thread.
May 10 '15 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: New Guy | last post by:
Hello, First, I want to apologize for posting this message to multiple groups. (1) I have a hard time finding any info and (2) this is not a school assignment. I am trying to create in my...
3
by: santybanty20 | last post by:
i got a project on time table creation of a department so any one having the code for the project please send it to me... the i/p:--- u have to enter no of classes,no of teacher,no of class,and...
0
by: janbazamin | last post by:
Hi Dear. I am making time table application in ASP.NET i am facing some problem i am adding Start time, End Time In Database. on some date. if i again select same date and stat time and end time. i...
0
by: janbazamin | last post by:
I am making time table application in ASP.NET i am facing some problem i am adding Start time, End Time In Database. on some date. if i again select same date and stat time and end time. i am...
5
by: Ishmael | last post by:
Hi Is Been a 3 Yrs Now (I Still trying to do this) Please help me to do this with Visual Basic 6.0 using Msflexgrid Let say you are the Principal . You have 10 educators and 5 class (Grades)...
9
alisyah
by: alisyah | last post by:
is it possible to insert the time table in database?
1
by: Zabivb | last post by:
Hai guys!!! I'm doing a project of college management, now my task is to generate time table automatically dependending up on the subject details ... Any help will be great. Thanks
10
by: KKSohaib | last post by:
I have project "Time Table of school". How it possible logically as well as visually in .NET. it contain all teachers name and their periods. when any one absent then we enter the name of teacher or...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.