B
Belinda
I'm having a strange problem. Before importing my excel spreadsheet, I
ensured all the fields were properly typed, Date, Text, etc… I am having a
problem calculating a day count in a daysTilNext field that I would like to
keep track of difference in days of an inspectionDate and a dueDate. When I
run my query, (and I’ve tried it many ways with different SQL statements and
date functions), only two fields update properly out of 290+ records. You’ll
notice I’m having the same problem with another update query to check if the
inspection is due, overdue field, which again is only updating two records.
Example of query results:
ID equipId inspectionDate dueDate overDue daysTilNext
1 733-27 25-Jun-08 20-Jun-09 YES 360
2 A2L5FLL1 25-Jun-08 20-Jun-09 NO 365
3 A2L5FLL2 25-Jun-08 20-Jun-09 NO 365
4 A2L5FLL3 25-Jun-08 20-Jun-09 NO 365
5 A2L5GFI1 25-Jun-08 20-Jun-09 YES 360
6 A2L5GFI2 25-Jun-08 20-Jun-09 NO 365
7 A2L5GFI3 25-Jun-08 20-Jun-09 NO 365
8 A2L5GFI4 25-Jun-08 20-Jun-09 NO 365
9 A2L5GFI5 25-Jun-08 20-Jun-09 NO 365
My current SQL statements look like this:
SET main.daysTilNext = DateDiff("d",[inspectionDate],[dueDate]);
SET main.overDue = "YES"
WHERE (((main.dueDate)>=([inspectionDate]+100)));
I would appreciate any insight as to why I am experiencing this problem.
ensured all the fields were properly typed, Date, Text, etc… I am having a
problem calculating a day count in a daysTilNext field that I would like to
keep track of difference in days of an inspectionDate and a dueDate. When I
run my query, (and I’ve tried it many ways with different SQL statements and
date functions), only two fields update properly out of 290+ records. You’ll
notice I’m having the same problem with another update query to check if the
inspection is due, overdue field, which again is only updating two records.
Example of query results:
ID equipId inspectionDate dueDate overDue daysTilNext
1 733-27 25-Jun-08 20-Jun-09 YES 360
2 A2L5FLL1 25-Jun-08 20-Jun-09 NO 365
3 A2L5FLL2 25-Jun-08 20-Jun-09 NO 365
4 A2L5FLL3 25-Jun-08 20-Jun-09 NO 365
5 A2L5GFI1 25-Jun-08 20-Jun-09 YES 360
6 A2L5GFI2 25-Jun-08 20-Jun-09 NO 365
7 A2L5GFI3 25-Jun-08 20-Jun-09 NO 365
8 A2L5GFI4 25-Jun-08 20-Jun-09 NO 365
9 A2L5GFI5 25-Jun-08 20-Jun-09 NO 365
My current SQL statements look like this:
SET main.daysTilNext = DateDiff("d",[inspectionDate],[dueDate]);
SET main.overDue = "YES"
WHERE (((main.dueDate)>=([inspectionDate]+100)));
I would appreciate any insight as to why I am experiencing this problem.