Are you trying to write history to a table regarding who is opening and closing forms and when? Assuming this is the table to store the desired information:
tblFormHistory
-------------
FormHistoryID
EndUserID
FormName
DateOpened
DateClosed
Create these functions in a module:
Public Function FormOpenHistory(strFormName As String) As Integer
Dim rst As DAO.Recordset
Set rst = CurrentDb.OpenRecordset("tblFormHistory"
rst.AddNew
rst.Fields("EndUserID"

= DLookup("UserID", "tblCurrentUser"

rst.Fields("FormName"

= strFormName
rst.Fields("DateOpened"

= Now()
FormOpenHistory = rst.Fields("FormHistoryID"

rst.Update
rst.Close
End Function
Public Function FormCloseHistory(intFormID As Integer)
Dim rst As DAO.Recordset
Set rst = CurrentDb.OpenRecordset("tblFormHistory"
rst.Index = "PrimaryKey"
rst.Seek "=", intFormID
rst.Edit
rst.Fields("DateClosed"

= Now()
rst.Update
rst.Close
End Function
For each form that you want history from use these for the Open and Close events:
Private Sub Form_Close()
FormCloseHistory intFormHistoryID
End Sub
Private Sub Form_Open(Cancel As Integer)
intFormHistoryID = FormOpenHistory(Me.Name)
End Sub
This assumes a Global variable:
Dim intFormHistoryID As Integer
The DLookUp statement assumes you have the EndUser information entered in a table - you may need to modify to your needs.