Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Field Changes Around Same Time As One Change

Status
Not open for further replies.

NMiller007

Programmer
Nov 15, 2006
65
US
I'm using a table which tracks changes to certain fields. These changes are marked with a date/time stamp. The fields I am looking at are addresses that have two fields, address1 and address2. I want to count a change to address1 and address2 at the same time as one address change. I also want to count a change to any single field at one time as one change. Looking at the data, there are single changes to each field and changes to both, so I can't just count one or the other. Also, the times are off by a second (at least) if the changes were made at the same time.

Any ideas how I can accomplish this? It seems like I need a way to look at the previous records to see if the times are within a certain amount of time (sometimes I miss Crystal Reports).

I was thinking of grouping by hour and even minute, but what if a change is made at 1:59 and 2:00, those would then be counted as two.

Thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top