Lots of ways!
If you are just interested in minutes, I'd do this:
timeused=Int(([EndTime]-[StartTime])*24*60)
or rather
timeused=Int(([EndTime]-[StartTime])*1440)
Jeffrey Bell
jbell@westlakegrp.com
Here's some code I threw together if you want to eliminate a few steps! (Always backup the table before trying it) Open a new form and paste this into a command button. Change the names of the table and fields and run it. Hope this helps!
Dim dbs As Database
Dim rst As Recordset
Dim FirstBlank...
No prob!
Try this in the text box MouseDown event:
DoCmd.OpenForm ("Name of my form")
DoCmd.CancelEvent
(The CancelEvent prevents the normal right-click menu from popping up)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.