473,507 Members | 3,678 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

who added that record?

3 New Member
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.
Mar 23 '07 #1
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?
Mar 23 '07 #2
Salsa Man
3 New Member
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?
Mar 23 '07 #3
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?
Mar 23 '07 #4
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:
Expand|Select|Wrap|Line Numbers
  1. Open "C:\<some directory>\LogFile.txt" For Append As #1
  2.   '[MyKey] is a Primary Key that uniquely identifies the Record
  3.   Print #1, CurrentUser & " modified Record ID# " & Me![MyKey] & " on " & Format(Now(), "ddd, mm/dd/yyyy @ hh:mm AM/PM")
  4. Close #1
Output:
Expand|Select|Wrap|Line Numbers
  1. 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.
Mar 23 '07 #5
Salsa Man
3 New Member
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.
Mar 26 '07 #6
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:
Expand|Select|Wrap|Line Numbers
  1.  
  2.     Set sysInfo = CreateObject("ADSystemInfo")
  3.     Set oUser = GetObject("LDAP://" & sysInfo.UserName & "")
  4.     intUsr = InStr(sysInfo.UserName, ",")
  5.     LName = Mid(sysInfo.UserName, 4, (intUsr - 5))
  6.     FName = Right(sysInfo.UserName, ((Len(sysInfo.UserName) - intUsr) - 1))
  7.     intUsr = InStr(FName, ",")
  8.  
  9.     FName = Left(FName, intUsr - 1)
  10.     UsrNme = LName & ", " & FName
  11.     UsrNme = UsrNme & " " & oUser.TelephoneNumber
  12.  
  13.    Me!Login = "Logged in as user name: " & Mid(Environ(29), InStr(1, Environ(29), "=") + 1)
  14.     Me!UName = "Welcome: " & UsrNme
  15.     Set sysInfo = Nothing
  16.     Set oUser = Nothing
  17.  
Mar 26 '07 #7

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

Similar topics

6
2359
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...
2
5171
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...
2
1540
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...
4
1728
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") =...
6
2818
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...
2
2178
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...
6
2759
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...
9
2461
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...
4
1926
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...
1
3800
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...
0
7110
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
7314
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,...
1
7030
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
7482
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
5623
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,...
0
4702
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...
0
3191
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...
0
1540
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 ...
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.