J
Jan T
I am using Access 2010 with the new Accdb file format. My DB has a
front end and a back end on a shared folder. When my program opens, I
want some code to search the table tblLoggedIn for a username and then
update the record with the field LoggedIn = True and the field
TimeStamp with current Time and date like in the function Now().
If the code cannot find the passed Username, the code should add a
username, LoggedIn = True and a Time stamp.
Same procedure when logging of or closing the database, that is,
LoggedIn should then be updated to False and TimeStamp refreshed to
current date and time.
(I do have a function for returning UserName called ReturUserName from
Windows).
Does anybody have a code example how to do this with vba and ado?
Regards
Jan T
front end and a back end on a shared folder. When my program opens, I
want some code to search the table tblLoggedIn for a username and then
update the record with the field LoggedIn = True and the field
TimeStamp with current Time and date like in the function Now().
If the code cannot find the passed Username, the code should add a
username, LoggedIn = True and a Time stamp.
Same procedure when logging of or closing the database, that is,
LoggedIn should then be updated to False and TimeStamp refreshed to
current date and time.
(I do have a function for returning UserName called ReturUserName from
Windows).
Does anybody have a code example how to do this with vba and ado?
Regards
Jan T