J
James
Hello I have been given the following code and I was
wondering if it will just keep adding to the .LOG file for
the errors it picks up?? and will the error log just stay
where it is? so for example if I close the database
the .LOG file stays where it is???
Here is the code:
-----------------------------------------------------------
Public Function ErrorLog(ObjName As String, routineName As
String)
Dim db As Database
Set db = CurrentDb
Open "I:\Error.log" For Append As #1
Print #1, Format(Now, "mm/dd/yyyy, hh:nn:ss") & ", " &
db.Name & _
" Unauthorized Access occured in " & ObjName & ", " &
routineName & _
", " & " User: " & GetUsrName() & ", Error#: " &
Err.Number & ", " & Err.Description
Close #1
wondering if it will just keep adding to the .LOG file for
the errors it picks up?? and will the error log just stay
where it is? so for example if I close the database
the .LOG file stays where it is???
Here is the code:
-----------------------------------------------------------
Public Function ErrorLog(ObjName As String, routineName As
String)
Dim db As Database
Set db = CurrentDb
Open "I:\Error.log" For Append As #1
Print #1, Format(Now, "mm/dd/yyyy, hh:nn:ss") & ", " &
db.Name & _
" Unauthorized Access occured in " & ObjName & ", " &
routineName & _
", " & " User: " & GetUsrName() & ", Error#: " &
Err.Number & ", " & Err.Description
Close #1