Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Reports / Printing / January 2006

Tip: Looking for answers? Try searching our database.

Conditional sorting not sorting numericaly

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Geranimo57 - 20 Jan 2006 15:58 GMT
Custom invoice subreport: I have a conditional sort in the
"Sorting and Grouping": =IIf([CustomerID]=3803,[ItemNumber],[SKU])

however I cannot get the Itemnumber field to sort numerically, I have
tried val([ItemNumber]), CInt.. etc., The recordset is a query of a few
tables, the Itemnumber is an Index in one of the tables.
Any help would be greatly appreciated.
Duane Hookom - 20 Jan 2006 22:00 GMT
If SKU is numeric, then you should be able to use:
=Val(IIf([CustomerID]=3803,[ItemNumber],[SKU]))
If SKU is not numeric then try format ItemNumber with leading 0s.
=IIf([CustomerID]=3803,Format([ItemNumber],"000000000000"),[SKU])

Signature

Duane Hookom
MS Access MVP
--

> Custom invoice subreport: I have a conditional sort in the
> "Sorting and Grouping": =IIf([CustomerID]=3803,[ItemNumber],[SKU])
[quoted text clipped - 3 lines]
> tables, the Itemnumber is an Index in one of the tables.
> Any help would be greatly appreciated.
Geranimo57 - 23 Jan 2006 13:55 GMT
That did it! Thank you.. thank you ... thank you! And I thought I had
tried everything eveny tried multiplying by 1.

THANKS AGAIN SCOTT
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.