142b7 sorting addresses
Sign Up |  Live StatsLive Stats    Articles 37,313| Comments 177,053| Members 19,398, Newest Geezah| Online 498
Home Contact
 (Forgotten?): 
    Ishmeet Singh - First Voice of India 2008 Winner
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




sorting addresses

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 100 USD (20%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
Email a Selection of Addresses using sendobject Confused Slug Information Technology 1 28-Jul-2006 08:19 AM
How do I post message in a body or addresses to the To: box Rich Selby Information Technology 9 28-Jul-2006 08:17 AM
How can I put E-mail addresses from a Access file into Outlook? Jane Tutor Information Technology 2 28-Jul-2006 08:07 AM
Send eMail to several addresses at once Ig Information Technology 3 28-Jul-2006 08:03 AM
Sorting - Help! (sorting fields associated with primary key) accessgrits Information Technology 12 16-Nov-2005 14:50 PM


Tags
sorting, addresses
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:29 AM
sternface's Avatar sternface
Guest
 
Posts: n/a
   
   
sorting addresses

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
I am trying to sort a field that is 345 south main street, when I sort the
column of address they appear lowest numeric number first.
How do I convert 345 south main street and so on that is in one field to 2
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/12445-sorting-addresses.html
fields: 345; south main street, so that the sort works properly?

*







Do share your immediate thoughts or reactions on this issue? We value your views! Login Now! or Sign Up Today! to share your views with us.. Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:29 AM
Ken Snell \(MVP\)'s Avatar Ken Snell \(MVP\)
Guest
 
Posts: n/a
   
   
Re: sorting addresses

Use two calculated fields in the query as the sort fields. Something like
this:

SELECT * FROM Tablename
ORDER BY Trim(Left([AddressField], InStr([AddressField, " ")-1)),
Trim(Mid([AddressField], InStr([AddressField, " ")+1));

--

Ken Snell

Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12445


"sternface" wrote in message
news:C252BA22-B1F6-4003-BCEC-642F8751407C@microsoft.com...
>I am trying to sort a field that is 345 south main street, when I sort the
> column of address they appear lowest numeric number first.
> How do I convert 345 south main street and so on that is in one field to 2
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12445
> fields: 345; south main street, so that the sort works properly?



Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:29 AM
Ken Snell \(MVP\)'s Avatar Ken Snell \(MVP\)
Guest
 
Posts: n/a
   
   
Re: sorting addresses

  Donate Today!  
To add to my post, you might have to cast the first part of the field as a
number to get numeric order sorting:

SELECT * FROM Tablename
ORDER BY CLng(Trim(Left([AddressField], InStr([AddressField, " ")-1))),
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12445
Trim(Mid([AddressField], InStr([AddressField, " ")+1));

--

Ken Snell

Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12445


"sternface" wrote in message
news:C252BA22-B1F6-4003-BCEC-642F8751407C@microsoft.com...
>I am trying to sort a field that is 345 south main street, when I sort the
> column of address they appear lowest numeric number first.
> How do I convert 345 south main street and so on that is in one field to 2
> fields: 345; south main street, so that the sort works properly?



Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Active Discussions
Thought of the Moment!
Today 13:33 PM
107 Replies, 5,036 Views
What I believe Hukam to...
Today 13:27 PM
0 Replies, 1 Views
Do you believe in...
Today 13:15 PM
180 Replies, 3,713 Views
BHOOTS (Ghosts) and...
Today 13:08 PM
102 Replies, 13,848 Views
What Do You Think of...
By akiva
Today 12:56 PM
27 Replies, 525 Views
How does Sikhi help you...
Today 12:44 PM
17 Replies, 549 Views
Why are There so Many...
Today 10:23 AM
70 Replies, 5,021 Views
Biography of a Scholar:...
Today 06:10 AM
1 Replies, 58 Views
Of Serpents, Pigs,...
Today 05:21 AM
37 Replies, 1,008 Views
Should SPN Keep the...
Today 03:27 AM
16 Replies, 396 Views
Map shows world's 'most...
Today 03:02 AM
15 Replies, 242 Views
Friends. A Testimony to...
Today 02:40 AM
4 Replies, 109 Views
Panjabi
Today 02:27 AM
11 Replies, 232 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 02:13 AM
301 Replies, 7,445 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Today 01:54 AM
169 Replies, 4,330 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 13:39 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.42005 seconds with 32 queries
0