Hey there. I've been waiting long time to brag about this code I came up with. Hope it is helpfull here.
This will retrieve data from the Envirment, in this case "s_login" which happens to be where our companies user ID's are stored from logging in. It then records it on a table "Use Log" as well as placing it on a form "Master List". Of course this does not address performing the action upon export but it's a start.
(side note here... I came accross another envirment where "User ID" was the string used to store the login id. if the code does not return a user name you can find the correct string to search for by displaying the strings found in a msgbox, cycling through until you find one that has your user id listed.)
On Error Resume Next
Dim EnvString, Indx, Msg, PathLen, UserID
Indx = 1
Do
EnvString = Environ(Indx)
'***msgbox EnvString 'Unconment this and
'***coment all but loop statement to find the
'***string containing your userid's.
If Left(EnvString, 8) = "s_login=" Then
PathLen = Len(Environ("s_login"

)
UserID = Right(EnvString, PathLen)
Dim MyDB As Database, Mytable As Recordset, MyTable2 As Recordset
Set MyDB = DBEngine.Workspaces(0).Databases(0)
Set Mytable = MyDB.OpenRecordset("Users", DB_OPEN_TABLE)
Mytable.Index = "UserID"
Mytable.Seek "=", UserID
If Not Mytable.NoMatch Then
Forms![Master List]![Security] = Mytable.Security
Forms![Master List]![UserID] = UserID
Set MyTable2 = MyDB.OpenRecordset("Use Log", DB_OPEN_TABLE)
MyTable2.Index = "PrimaryKey"
MyTable2.AddNew
MyTable2("Index #"

= Forms![Login]![Index #]
MyTable2("Date"

= Date
MyTable2("Time"

= Time
MyTable2("Action"

= "In"
Forms![Login]![UseID] = MyTable2.ID
MyTable2.Update
MyTable2.Close
End If
Exit Do
Else
Indx = Indx + 1
End If
Loop Until EnvString = ""