st4rcutter
Technical User
This is a new one for me. I have a database that calculates the week number based on one of two fields. Here is the expression:
Week: Format(IIf([PM Tracking]![Sup FOC] Is Null,[PM Tracking]![Original FOC],[PM Tracking]![Sup FOC]),"ww")
Field names [Original FOC] and [Sup FOC]are short date values of (6/01/2006) format. Everything works correctly but the results do not sort by week correctly. For the most part the week is sorted but there are some values such as week 7 and week 9 that occur after week numbers 10 through 49. Does the sort reference back to the orginal data? I suspect that is the culprit.
Week: Format(IIf([PM Tracking]![Sup FOC] Is Null,[PM Tracking]![Original FOC],[PM Tracking]![Sup FOC]),"ww")
Field names [Original FOC] and [Sup FOC]are short date values of (6/01/2006) format. Everything works correctly but the results do not sort by week correctly. For the most part the week is sorted but there are some values such as week 7 and week 9 that occur after week numbers 10 through 49. Does the sort reference back to the orginal data? I suspect that is the culprit.