G
Greg
The scenerio is, I have a form that allows users to filter and sort a
report that is open in the background. One of the options is a
calculation between two dates but it isn't working. Instead of sorting
by the DateDiff calculation, it just sorts by the dates. When I go
into the report and look at the properties after the filtering/sorting
has been applied, the OrderBy property has the DateDiff in there
correctly, but it just isn't working. I'm new to VBA, so everything
I've built I've learned to do on the fly. My experience is in VB
Script/ASP. Any help would be appreciated. I can send a copy of the
database if necessary.
here is the abreviated version of the code I'm using:
With Reports![StateReport]
strSortOrder = "DateDiff('d',[Claim_Date_Rcvd],[Claim_Date_Cmpltd])"
.Filter = strFilter
.FilterOn = True
.OrderBy = strSortOrder
.OrderByOn = True
End With
Thanks,
Greg
report that is open in the background. One of the options is a
calculation between two dates but it isn't working. Instead of sorting
by the DateDiff calculation, it just sorts by the dates. When I go
into the report and look at the properties after the filtering/sorting
has been applied, the OrderBy property has the DateDiff in there
correctly, but it just isn't working. I'm new to VBA, so everything
I've built I've learned to do on the fly. My experience is in VB
Script/ASP. Any help would be appreciated. I can send a copy of the
database if necessary.
here is the abreviated version of the code I'm using:
With Reports![StateReport]
strSortOrder = "DateDiff('d',[Claim_Date_Rcvd],[Claim_Date_Cmpltd])"
.Filter = strFilter
.FilterOn = True
.OrderBy = strSortOrder
.OrderByOn = True
End With
Thanks,
Greg