** This thread was split from a related thread how to add 1 minute based on previous record in same field in access **
I developed a problem here now
On the first double click, it adds the 1 min, but when i click in the next row, instead of adding 1 minute onto the previous time, it shows "Invalid use of Null"
In the 3rd line after double clicking inside it, it must show
"14/11/2011 21:23:03.019", but produces and error instead.
Please be so kind to assist
[imgnothumb]http://bytes.com/attachments/attachment/5654d1321298981/magical-snap-2011.11.14-21.21-004.jpg[/imgnothumb]
I developed a problem here now
On the first double click, it adds the 1 min, but when i click in the next row, instead of adding 1 minute onto the previous time, it shows "Invalid use of Null"
Code:
On Error GoTo TimeStart_DblClick_Err
Dim strTime As String, strFraction As String
strTime = DLookup("[Timestart]", _
"RaceEntry", _
"[RaceEntryID]=" & [RaceEntryId] - 1)
strFraction = Split(strTime, ".")(1)
strTime = Split(strTime, ".")(0)
TimeStart = Format(DateAdd("n", 1, strTime), "dd/mm/yyyy HH:nn:ss.") & _
strFraction
DoCmd.RunCommand acCmdRefresh
TimeStart_DblClick_Exit:
Exit Sub
TimeStart_DblClick_Err:
MsgBox Error$
Resume TimeStart_DblClick_Exit
"14/11/2011 21:23:03.019", but produces and error instead.
Please be so kind to assist
[imgnothumb]http://bytes.com/attachments/attachment/5654d1321298981/magical-snap-2011.11.14-21.21-004.jpg[/imgnothumb]
Comment