SalmanZeiad
Member
- Local time
- Today, 21:59
- Joined
- Oct 30, 2017
- Messages
- 115
i want to make form display in text box last login or entered to form
i want to add for example ,"last login :1-1-2026" to my login formDescribe more exactly where you are stuck in accomplishing that task.
I would retrieve before storing, else you will always get the current login?Further to what has been suggested, you need a table called something like "tblLogin". It will need fields like "Login" and "LoginDateTime". In an AuthoExec macro, call a function that captures the UserID of the person starting the application and the date and time of that login. Store that in your Login table. From that data, retrieving the most recent login for each user is straightforward using DMax().
Good point.I would retrieve before storing, else you will always get the current login?
i want to add for example ,"last login :1-1-2026" to my login form
Ok, i understoodYou have gotten several responses. I will explain a fine point to help you go forward in this issue.
Access is a bare-bones rapid application development system that gives you the tools to do things you want done. With VBA you can be very flexible. You can have all sorts of login and update and visitation statistics in history tables. BUT you have to build them yourselves. The basic rule is that if you want to be able to track something - like a login - you have to write code to STORE that login and define a place to keep that information for future use. For tracking logins, that usually means building a tblLoginHistory that tracks date and user ID for each login. It is possible to keep other things in that proposed table, but for VBA and Access, the rule is "You want it? You build it."
oooh,, iam from GAZA,Palestine ,,,You know we've been at war for two years. !!!You’ve been a member for 8 years and asked the same question 2 years ago
record date & time entered user login
I want to log the date and time of each user login and display the last time logged inwww.access-programmers.co.uk