473,287 Members | 1,793 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 software developers and data experts.

Time and elapsed time

All,

As a newbie I am having difficulty determining how to record the time during different portions of a transaction:
1) Elapsed time from the termination of the last transaction to Now () when a new transaction is begun
2)"On Click" recording the ending time into (?) Form![table].[field]=Format(date, (as) "General Date" (I need to record time down to the seconds)

So far I have:

Private Sub Command34_Click()
Dim [Data_Entry_Table].[End_time] As Date
[Data_Entry_Table].[End_time] = Nz(Format(Now(), "General Date"))

End Sub


please help a struggling beginner
May 27 '10 #1
2 3132
patjones
931 Expert 512MB
I sense that it might be possible to do what you want, but I think we need some clarification from you. In particular, what makes for a transaction in your database? For instance, opening a form, entering some data, hitting a save button, closing form...

Pat
May 28 '10 #2
A transaction, in our case, is when an employee is to correct or finalize an electronic transaction that was flagged by a 'trigger'.

We are trying to find some performance measures. So, note that simply beginning a transaction with captured time and then ending it with time does not capture the 'queue' time. Queue time is important because it captures the time between ending one transaction and beginning another.

Ideally, three times would be captured: one as the employee finishes and single-clicks "next" to finish one and go to the next, a "start" button to begin time, and "end" time captured (on update(?)) as the info for the last field in the form in entered.

Time in queue = "start" [time] - "next" [time] (elapsed time before beginning a new transaction). Time of transaction = "end" - "start".

It would even be more efficient if they did not have to click any buttons and this info was captured behind the form (with "on update" or likewise).
Jun 1 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: NotGiven | last post by:
Below is a good elapsed time function I found. However, I'd like to return total seconds instead of broken down into days, hours, minutes & seconds. In other words, I want "125" instead of "2...
2
by: Terry Shandal | last post by:
Hi, I've been researching this for the past few hours but most of what i found involved work weeks/shifts. i hope my problem is simpler. Given a start date and a start time, end date and end...
20
by: Jean Johnson | last post by:
Hello - I have a start and end time that is written using the following: time.strftime("%b %d %Y %H:%M:%S") How do I calculate the elapsed time? JJ
4
by: Jim in Arizona | last post by:
I want to make buttons available or not available based on how much time has elapsed. An example: If NOW() 8 hours then btnOne.Visible = False Thanks. Jim
12
by: Spitfire | last post by:
I've a requirement to find the elapsed time between two function calls. I need to find the time elapsed accurate to 1 millisecond. The problem I'm facing right now is that, I'm using the 'time()'...
5
by: mmi48 | last post by:
Most of the discussions I've seen about elapsed time have, thus far, involved at least two date/time fields. I am trying to calculate time elapsed from one field across multiple records. The field...
12
by: pekka | last post by:
I'm trying to measure user input time with my Timer class object. It isn't as easy as I expected. When using std::cin between timer start and stop, I get zero elapsed time. For some unknown reason,...
7
by: wanwan | last post by:
Hi, I'm looking for a better way to do a date/time elapsed event rather than a timer elapsed event. Currently, I wrote my program to use a timer elapsed event set to 1 second, and it checks...
9
by: Ron Adam | last post by:
I'm having some cross platform issues with timing loops. It seems time.time is better for some computers/platforms and time.clock others, but it's not always clear which, so I came up with the...
9
by: Ross | last post by:
I'm a newbie at this, and have searched a lot but can't find something that seems appropriate for measuring a recurring elapsed time. Creating an object with: var mydate = new Date(); seems...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.