I am over my head, but my boss has asked me to do something that I would think is simple. I was hoping the readers here could help...
I am trying to compare the data in [Created On], [End Time] and [JS]
The [Created On] and [End Time] fields are formatted in a mm/dd/yy hh:mm:ss (example: 11/13/2010 11:19:00 AM)
The [JS] field is a simple text field where the data is 2 char's (“CP”, “AS”, “IS”, or “ND”)
The data is exported from a program as text, but I have the Data Type for the [Created On] and [End Time] fields set as Date/Time.
Comparing these 3 fields I need to extract 3 sets of data:
1. Compare [Created On] to [End Time] and extract records that have a [JS] of "CP" and are greater than 24 hours old.
2. Compare [Created On] to [End Time] and extract records that have a [JS] not equal to "CP" where the [Created On] date/time is BEFORE 3pm of the previous day.
2. Compare [Created On] to [End Time] and extract records that have a [JS] not equal to "CP" where the [Created On] date/time is AFTER 3pm of the previous day.
Any help and advice you can give will be GREATLY appriciated.
