Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 30th, 2004, 09:02 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default Module / Query Help

Hi,

   Thanks for your help in advance.

   I am trying to do some date calculations. Here is some sample data:

'============================================
tblSecLog.
AppID AppName EventNo Date Time Event User
26 MSACCESS.EXE 5644 11/29/2004 3:28:05 PM Close mmcdonal
27 MSACCESS.EXE 5644 11/29/2004 3:27:57 PM Open mmcdonal
28 MSACCESS.EXE 61372 11/30/2004 7:43:44 AM Close mmcdonal
29 MSACCESS.EXE 61372 11/30/2004 7:43:31 AM Open mmcdonal
'============================================

You can see from this that I am tracking the opening of an application, and the closing of an application. The application has a single event number, so I know that each is the same instance of Access opening and then closing. I know the time the app opened, and the time the app closed.

I need to calculate, for many instances of Access for example (each with its own unique event number), how long access was open in a particular day. In this case, it was open for 8 seconds on the 29th, and 13 seconds on the 30th.

Perhaps this needs to be a query, so I will post this in Access, but I will monitor both for posts, and update the other with solutions.

Thanks,



mmcdonal
__________________
mmcdonal

Look it up at: http://wrox.books24x7.com
 
Old November 30th, 2004, 01:02 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Hi, thanks everyone. I already got posts and solved the problem under the Database>Access forum, post name "Query Help."


mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
module umeshtheone Beginning VB 6 2 May 17th, 2007 05:48 AM
module umeshtheone VB Databases Basics 1 May 14th, 2007 01:41 PM
new module FT BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 March 15th, 2007 06:06 AM
module? flora8 Access VBA 2 September 7th, 2006 11:10 AM
Module sohrabus ASP.NET 2.0 Professional 1 September 1st, 2006 12:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.