T
Tony Williams
I have a continuous sub form, based on a table Actionlog that is used as an
Action Log. There are 4 controls
Action Log - text
Timedate - based on Time/Date field of same name
Log Date - =Format([TimeDate],"dd-mm-yy")
Log Time - =Format([TimeDate],"hh:nn AM/PM")
The Event procedures for the sub form are:
Private Sub Action_Log_AfterUpdate()
If Me.NewRecord Then
Me.TimeDate = Now
End If
End Sub
Private Sub Form_Current()
If Me.NewRecord Then
Me.Action_Log.Locked = False
Else
Me.Action_Log.Locked = True
End If
End Sub
As the user inputs new data into the ActionLog control the date and time is
automatically entered in Log Date and Log Time.
In nearly all the records the entries for Action Log are sorted in date/time
order. In a few records odd entries appear out of sequence. I've sorted the
table by the TimeDate field but that hasn't made any difference. As the
controls are calculated it can't be the user making an input error.
Can anyone suggest what might be going wrong?
Thanks
Tony
Action Log. There are 4 controls
Action Log - text
Timedate - based on Time/Date field of same name
Log Date - =Format([TimeDate],"dd-mm-yy")
Log Time - =Format([TimeDate],"hh:nn AM/PM")
The Event procedures for the sub form are:
Private Sub Action_Log_AfterUpdate()
If Me.NewRecord Then
Me.TimeDate = Now
End If
End Sub
Private Sub Form_Current()
If Me.NewRecord Then
Me.Action_Log.Locked = False
Else
Me.Action_Log.Locked = True
End If
End Sub
As the user inputs new data into the ActionLog control the date and time is
automatically entered in Log Date and Log Time.
In nearly all the records the entries for Action Log are sorted in date/time
order. In a few records odd entries appear out of sequence. I've sorted the
table by the TimeDate field but that hasn't made any difference. As the
controls are calculated it can't be the user making an input error.
Can anyone suggest what might be going wrong?
Thanks
Tony