I am hoping that someone out there will be able to help me, I am about to start developing a number of databases which will require the tracking of who has entered either a record or added notes to a record. Is there an easy way to do this automatically along with the date?
Any help would be appreciated.
6 1843 Denburt 1,356
Recognized Expert Top Contributor
What sort of environment are they in network wise? Do you know if they have a main server, are they using Active Directory?
What sort of environment are they in network wise? Do you know if they have a main server, are they using Active Directory?
So far as i know its Windows with main server other than that I dont know, does that make a difference?
Denburt 1,356
Recognized Expert Top Contributor
Well it could, does your databases currently have security setup (logon screen) when they open? One more thing how are they currently logging into their PC or do they?
ADezii 8,834
Recognized Expert Expert
I am hoping that someone out there will be able to help me, I am about to start developing a number of databases which will require the tracking of who has entered either a record or added notes to a record. Is there an easy way to do this automatically along with the date?
Any help would be appreciated.
One of my favorite methods is to create a Log File to monitor changes/edits/deletions, etc. Its simplist Format would be as follows: - Open "C:\<some directory>\LogFile.txt" For Append As #1
-
'[MyKey] is a Primary Key that uniquely identifies the Record
-
Print #1, CurrentUser & " modified Record ID# " & Me![MyKey] & " on " & Format(Now(), "ddd, mm/dd/yyyy @ hh:mm AM/PM")
-
Close #1
Output: - Admin modified Record ID# 1 on Fri, 03/23/2007 @ 11:57 AM
NOTE: All this, of course, assumes you have a Log On Procedure in place.
Thanks for the help so far, I have not started to develope the database yet, so I have not added any security as yet, idealy I would like to be able to use the windows log on if that is possible.
Denburt 1,356
Recognized Expert Top Contributor
When Active Directory is in place I like using it to keep track of who's who and who is changing what. If AD is in place then you can add a reference in VBA to "Active DS Type Library"
Then you can use something like the following: -
-
Set sysInfo = CreateObject("ADSystemInfo")
-
Set oUser = GetObject("LDAP://" & sysInfo.UserName & "")
-
intUsr = InStr(sysInfo.UserName, ",")
-
LName = Mid(sysInfo.UserName, 4, (intUsr - 5))
-
FName = Right(sysInfo.UserName, ((Len(sysInfo.UserName) - intUsr) - 1))
-
intUsr = InStr(FName, ",")
-
-
FName = Left(FName, intUsr - 1)
-
UsrNme = LName & ", " & FName
-
UsrNme = UsrNme & " " & oUser.TelephoneNumber
-
-
Me!Login = "Logged in as user name: " & Mid(Environ(29), InStr(1, Environ(29), "=") + 1)
-
Me!UName = "Welcome: " & UsrNme
-
Set sysInfo = Nothing
-
Set oUser = Nothing
-
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Tony Stoker |
last post by:
I have a .Net web app that adds a record to a SQL
database. After the user adds their record I want to
have a link that will link them to their new record! The
recordID is a AutoNumber in the...
|
by: baskar |
last post by:
Hi,
I have a table with 90 fields. When I try to use the recordset with
addnew and set all the 90 fields and then update the record set it
fails the following error seen in the log,
SQL0117N...
|
by: Randy |
last post by:
Hello,
Can someone tell me what is the best way of implementing the detection of
adding a row to a datagrid. I looked at using a DataView as the datasource
and the ListChanged event, but that...
|
by: Richard |
last post by:
In normal asp i used
---------
objRS.Open "tbl_Nieuws", objConn, 1, 3
objRS.AddNew
objRS.Fields("N_Datum") = FormatDateTime(Now(),2)
objRS.Fields("N_Title") =...
|
by: tlyczko |
last post by:
I am working on an audits database.
The main table, Audits, has an AuditID primary key.
Another table, 1:1 relationship, ProgramAudits, has AuditID as a
foreign key.
I have a master/main form...
| |
by: Kaur |
last post by:
Hi,
I am working in MS Access 2000 and have created two forms. Form 1 is
called frmParent (which has a subform called SfrmChild). FrmParent has
a list box that lists all the Last Names of...
|
by: gerbski |
last post by:
Hi all,
I am relatively new to ADO, but up to now I got things working the way
I wanted. But now I've run into somethng really annoying.
I am working in MS Access. I am using an Access...
|
by: =?Utf-8?B?UHJhdmlu?= |
last post by:
We are using .net Framework 1.1
We are having one page on which we are using this Grid component.
From this page we open a popup for adding new record as well as for editing
an existing record...
|
by: banderson |
last post by:
Hello,
I am having a problem getting a new record in a subform to append to the underlying table. When I add a new record to the main form, the subform is blank, except for the ID field, which is...
|
by: MerlinS |
last post by:
Using Access 2003.
I have a form and a subform.
On the main form, one of the fields is a lost box, which lists line numbers ie 1, 2, 3 etc.
Then the list box is clicked, the subform corresponding...
|
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...
| |
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,...
|
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...
|
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...
|
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: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |