D
DaveB
Below is my VB. I'm have trouble with the last button.
I'm trying to get it to subtract commad91 from command 92
and come up with hours and minutes. the problem is that
unless I put a 0 in front of :00 it will not tell me the
minutes, but when I put it 0:00 it reads 290:12 for 29
hours and 12 minutes.
Option Compare Database
Private Sub Command91_Click()
Me!DateTime1stContact = now()
End Sub
Private Sub Command92_Click()
StartDateTime = Date + Time()
End Sub
Private Sub Command93_Click()
Me!CompletionDateTime = now()
End Sub
Private Sub Command95_Click()
Me!TotalTimetoBill = DateDiff("h", Me!StartDateTime, Me!
CompletionDateTime) & Format(DateDiff("n", Me!
StartDateTime, Me!CompletionDateTime) Mod 60, "0:00")
End Sub
I'm trying to get it to subtract commad91 from command 92
and come up with hours and minutes. the problem is that
unless I put a 0 in front of :00 it will not tell me the
minutes, but when I put it 0:00 it reads 290:12 for 29
hours and 12 minutes.
Option Compare Database
Private Sub Command91_Click()
Me!DateTime1stContact = now()
End Sub
Private Sub Command92_Click()
StartDateTime = Date + Time()
End Sub
Private Sub Command93_Click()
Me!CompletionDateTime = now()
End Sub
Private Sub Command95_Click()
Me!TotalTimetoBill = DateDiff("h", Me!StartDateTime, Me!
CompletionDateTime) & Format(DateDiff("n", Me!
StartDateTime, Me!CompletionDateTime) Mod 60, "0:00")
End Sub