I am fairly new to VB although have some experience with VBA in access. I have a form with a subform. This is based on a table called WorkDetails. The sub form is datasheet view. In the subform I have a start time (Start) field and a finish time (Finish) field. The field data typr for both is time(7) which give say a result of 10:35:00. What I want is to show the time elapsed between these two fields in hours and minutes (and a non visible field on total minutes). In access I would convert using Datediff with something like
. I would then use something like this code to make the conversion and formating:
. I have absolutely no idea how to go about this in a VB windows form can someone help please?
Code:
"=DateDiff("n",[Start],[Finish])"
Code:
"=[txtTotalMinutes]\60 & Format([txtTotalMinutes] Mod 60,"\:00")"