Subtracting Times...

QMDirk

Member
Local time
Today, 06:41
Joined
Nov 16, 2019
Messages
52
Hi again. Does anyone have a simple code to subtract one Time from another and display the result in Minutes? Ex: [Time Up]-[Time Down]=[Total Minutes]
 
In your query , form or report where ever you need this.
 
I see. To this day, I have never successfully used a Function in VBA to do anything. Web pages don't answer all of my questions and I'm left hanging. I understand what the function is trying to do, I just have no idea where to put it.
 
Yes, but where, please? The last explaination wasn't clear about where to insert the DateDiff() code...
And your original post said nothing about where you need it to go! As the Mailman said, it needs to go wherever you need it to go.

Perhaps a plain language explanation of exactly what you're trying to do would help us to help you.

Linq ;0)>
 
I see. To this day, I have never successfully used a Function in VBA to do anything. Web pages don't answer all of my questions and I'm left hanging. I understand what the function is trying to do, I just have no idea where to put it.
Use in a query as a calculated field. Something like:
Answer: DLookup()etc

Or as the Control source property of a textbox on a form. Something like:
=DLookup()etc
 

Users who are viewing this thread

Back
Top Bottom