I have a table that stores dates like this: 200902015 i.e. 2/15/2009
In a query I am trying to convert that to a date.
I am using
It looks good,
It looks like it is working
In the next field I even have a DataAdd to this Expression and it seems to work.
But when I sort it the order is all messed up.
Any ideas?
Thank you,
In a query I am trying to convert that to a date.
I am using
Code:
Week_Ending:
IIf(
Nz(view_Last_Labor!Max_Week_Ending)<>"",
CDate(
Trim(Str(Val(Mid$(view_Last_Labor!Max_Week_Ending,5,2))))
& "/" &
Trim(Str(Val(Right$(view_Last_Labor!Max_Week_Ending,2))))
& "/" &
Left$(view_Last_Labor!Max_Week_Ending,4)
)
,""
)
It looks good,
It looks like it is working
In the next field I even have a DataAdd to this Expression and it seems to work.
But when I sort it the order is all messed up.
Any ideas?
Thank you,