Comparing Rows in a Table

A

acal675177

I have a table that is collecting warehouse activity via timestamp. So
each time Tech 1 scans a package a time stamp and transaction number is
placed as a row in the table.

Activity ID (autonumber)
TECHID (text)
TimeStamp (date/time)
TimeDiff

I would like to update the field TimeDiff but determining the amount of
time between the previous transaction.

Transaction 1 happend at 12:00 PM
Transaction 2 happend at 1:00 PM TimeDiff is 1 hour


I do not know how to write this in a module for Microsoft Access 2002.

Help!!

Gee
 
G

Guest

First, you should not store a calculated value in a table. It wastes disc
space, takes more time, and is prone to be incorrect if anything that affects
the calculation changes.

Your calculations should be done when you want to present the results to a
user on a form or in a report.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top