problem ordering zip code ASC

Hello
I have a drop down menu which lists postal codes (address UK codes) in the order of the CSA. This all works well, except that the order is not as I would like to:

for example, the display of postcodes CSA listed as follows:

KT1
KT10
KT11
KT12
KT16
KT18
KT2

I see that the list is classified "correctly", but I need at least logically, list as follows:
KT1
KT2
KT10
KT11
KT12
KT16
KT18

Is this possible using SQL or any other method?

Hi Jules,.
Thanks again for the input, really appreciated. I found the solution:

SELECT * postal CODE ORDER BY Left(postcode_code,2), CInt (Mid (postcode_code, 3, 2))

This works a treat. Thanks again.

Tags: Dreamweaver

Similar Questions

  • Get a zip code error when your book order

    Getting a zip code error when your book order is exact zip code th for my address.

    In the Canada.

    Help

    You order the Canadian Apple store online? If this isn't the case, then you must change your store site online on the Canadian site. Scroll down to the bottom of the page where you should find an icon of circled on the right corner flag. Click it, and then select the Canadian store in the list and re - buy article. It must now accept Canadian postal codes rather than postcodes American.

  • ZIP Code / Postal code problem! Help!

    Please help me! I'm trying to update my PC with Windows 8 Upgrade Assistant but I can't. In the billing address, I wrote my zip code is + 84 (Viet Nam), but it was not valid format. I don't know why?

    Hello

    Thanks for posting in the Microsoft Community.

    We are sorry for the inconvenience.

    You may need to contact Microsoft Store to get help:

    Here is the link:

    Sales and support:

    http://www.microsoftstore.com/store/msstore/HTML/pbPage.Help_Site_Contact_Us

    Hope the helps of information.  Please respond to help you further.

  • Problem with xml zip code lookup

    Hey guys!  I am also new on the forum because I'm to AS3.  Needless to say, I need a little help here.

    I load an xml file that contains nothing more than a list of zip codes "valid."  Here is a sample of the xml data:

    =================================================

    zipCodes.xml

    =================================================

    <? XML version = "1.0" encoding = "ISO-8859-1? >
    < zip codes >
    < zip > 82930 < / zip >
    < zip > 82931 < / zip >
    < zip > 83114 < / zip >
    < zip > 83201 < / zip >
    < > 83202 zip < / zip >
    < zip > 83203 < / zip >
    < zip > 83204 < / zip >
    < zip > 83205 < / zip >
    < zip > 83206 < / zip >
    < zip > 83209 < / zip >
    < zip > 83210 < / zip >
    < zip > 83211 < / zip >
    < zip > 83212 < / zip >
    < zip > 83213 < / zip >
    < zip > 83214 < / zip >
    < zip > 83215 < / zip >
    < zip > 83217 < / zip >
    .. and so on.

    =================================================

    I want to happen is when a user enters a zip code, I need not to revert to a 'yes' or ' ', based on whether or not the postal code, that their entry is in the xml list.  So far, it only works if the zip they enter is be the last one on the list.  This indicates to me that he is not seeking the entire file, or has it perhaps need to search in a loop, somehow.

    Here is the code that works closest to what I need:

    =================================================

    AS3 code

    =================================================

    Stop();

    var xmlLoader:URLLoader = new URLLoader;
    xmlLoader.addEventListener (Event.COMPLETE, showXML);
    xmlLoader.load (new URLRequest ("zipCodes.xml"));
    var xmlData:XML;

    function showXML(e:Event):void {}
    xmlData = new XML (e.target.data);
    var i: Number;

    for each {(var enfant: XML dans xmlData.*)}
    trace (Child);

    var thisHere = textfield.text;
    If (thisHere == child) {}
    textfieldDisplay.text = "it worked."
    } else {}
    textfieldDisplay.text = "nope."
    }
    }
    }

    =================================================

    I know it's probably waaaaaay hurt, so I ask for help.  Thanks in advance!

    I leave you Brad, I tried to get my suggestion to work for you and for reasons unknown (Murphy's law at work), the approach to the use of 'indexOf()' will not play for me, except in circumstances where I have actually set one of the values in the table to the TextField... so I can't follow your request with a solution to my suggestion.

    If what you have is work for you, then what you could do is initially set the responseField to say 'no!' and if the value is found that he will replace that with 'yes '!

    One thing, you should avoid nesting of functions within other functions.  So I removed that but left the listener in this assignment for the button will not work until the data is loaded.

    function xmlLoaded(evt:Event):void {}
    bttn.addEventListener (MouseEvent.CLICK, bttnFunc);
    }

    function bttnFunc(e:Event):void {}

    responseText.text = "no!"

    xmlEPG = new XML (ulXml.data);
    for each {(var objet: XML dans xmlEPG.*)}
    If (object == inputField.text) {}
    responseText.text = "yes".

    break; exit the loop as soon as is
    }
    }
    }

  • Sony Vaio laptop: why the printer put the processes in place do not accept my zip code valid?

    No error message - just the red text: "Please enter a valid zip code."  I have lived at the same address for 22 years and I know the postal code that I entered is correct!

    (Also, following a response prior to a similar question, I tried prefixed code country (UK) still nothing does not.)

    Thanks for any help to recover from this frustration.

    Hi @Tony74,

    Thanks for joining the Forums of HP Support for a solution to your problem of postal code entry.

    I understand you are trying to enter your zip code, but you told that the postal code you entered is not valid. I would like to help.

    You register with HP now ink, or try to place an order online?

    You mentioned that you have tried a couple different things. Have you tried making space in the zip code is here, or out of space?

    I'll watch for your reply, so I can help you further. Just reply to your convenience.

    If this helps you find a solution please click the 'accept as Solution' and the 'thumbs up' buttons down below in this message.

    Thank you!

  • I have an account with photography lr and ps with monthly payment. I would like to change my card kredit details, but there is an error with an address. There is a notice that the zip code is wrong, but I don't know I put it in correctly. Please give me a

    I have an account with photography lr and ps with monthly payment. I would like to change my card kredit details, but there is an error with an address. There is a notice that the zip code is wrong, but I don't know I put it in correctly. Please give me an advice what to do, because my payment cannot be achieved. Thank you, Agnieszka

    Since this is an open forum, not Adobe support... you must contact Adobe personnel to help
    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific time) <===> NOTE DAYS AND TIME
    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)
    http://helpx.Adobe.com/x-productkb/global/service-CCM.html
    -or by phone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • Syntax error in AppleScript, written at Automotive Search + 4 zip code

    I am very interested to find and install a script or a 'code' any that would allow me to enter an address and when I go to insert the zip code, it was automatically filled in with + 4 part of the postcode.  It's a generally available information to this web page: https://tools.usps.com/go/ZipLookupAction! input.action

    The problem is looking for every contact I have add and there are several, is just a tedious task of many steps which should be a pretty easy solution for the 'writing' "applescript" to understand.  I'm not a programmer and basically just need someone to take a look at this code and see where I might have a problem.  This code is provided by a person for me and unfortunately, they assured me that it worked with previous versions of the application contact for the previous operating system - it seems not however, with the new application 'Contacts' work.

    After talking with a few different apple consultants who are not able to help or simply not have the time, I thought that I could join the community and see if I could win any help or support.

    Please see the code below-

    I have it saved as a script from apple and am aware that this belongs to be saved in one of these two files, once it works correctly:

    / Library/Application Scripts/com.apple.AddressBook

    or

    / Library/Application Support/AddressBook /.

    Here's the Script:

    -code postal locator

    using terms from application "Contacts".

    on action property

    return "address"

    end action property

    on the action title of p with e

    If the zip of e contains "-" then

    return "This ZIP Code.

    on the other

    return 'ZIP + 4 Lookup'

    end if

    end action title

    We should allow action for p with e

    If e zip does not contain "-" then

    Returns true

    on the other

    return false

    end if

    end should allow an action

    perform in action for p with e

    the value LookupURL ¬

    "https://tools.usps.com/go/ZipLookupAction!" input.action"& Street e &"& address2 = & city ="& ¬"

    City of e & "& status =" & State e & "& & urbanCode = & postalCode = & zip = '

    Tell application "Safari" to open location LookupURL

    Returns true

    end to perform action

    Two things:

    (1) you have Contacts in 'Smart' quotes Remove them and replace them with normal double quotes.

    (2) you need, end up using phrases of the declaration at the end of the script.

    ---- zip code locator
    using terms from application "Contacts"
      on action property
      return "address"
      end action property
    
      on action title for p with e
      if zip of e contains "-" then
      return "Zip Code Present"
      else
      return "ZIP + 4 Lookup "
      end if
      end action title
    
      on should enable action for p with e
      if zip of e does not contain "-" then
      return true
      else
      return false
      end if
      end should enable action
    
      on perform action for p with e
      set LookupURL to ¬
      "https://tools.usps.com/go/ZipLookupAction!input.action" & street of e & "&address2=&city=" & ¬
      city of e & "&state=" & state of e & "&&urbanCode=&postalCode=&zip="
      tell application "Safari" to open location LookupURL
      return true
      end perform action
    end using terms from
    
  • Which is the * which replaces the zip codes with "United States".

    So I use the calendar for my daily schedule of the customer. Recently, I made the mistake of upgrading to OS (always a mistake with apple these days) and now have a MAJOR problem with the location field.

    Some * at apple decided to replace the postal code SUPREMELY USEFUL with 'United States', when I get an address and ap auto fills in the rest. I tried replacing it and not selecting in the dropdown list options that appears when I start typing in a speech, but it is on its own.

    Must say replacing a very specific data item for something so broad that the United States is one of the stupidest things, Apple has done recently (apple doing stupid things is unfortunately too often PJ {Post job}).

    I drove to the wrong address several times that big cities like THE have often more than a street with the same name. Get a zip code has been a great way to avoid this problem, but some Morón has decided to get rid of post code data and the access point has no option of preference to add in the zip code.

    Be sick enough Apple make these kind of nonsense that would never happened before (Ex: decide to move progress bars to 100% immediately independent to the extent of the progress are actually completed).

    Anyone know a work around? The only advice I receive from apple is to return to an older operating system (great work apple.) Train me to not trust and avoid your new operating system.  Great idea, is NOT).

    Post edited by: codr

    I know that we just spend an hour on the phone with apple care and they told us the same thing. We need these postal codes to be there so that we our sellers in the right place. missing or being late for the appointment is very professional. We need apple to fix this ASAP.

  • Zip code FF at the start, restart of the extremities as stuck at Windows startup

    No experience with the material for PC here. I am grateful to anyone who can help me understand this. I turn on the computer and I immediately get a position FF code and no display on monitor. I press the restart button and zip code will run successfully through all of the sequences up to FF, and I get a screen of the bios and an option to either do the startup repair or support Windows 7 normally.

    If I choose the repair, I get nothing but a black screen.

    If I choose Normal, the computer restarts (performs postal codes) and then gets stuck at Windows startup.

    This allows me to access the configuration of the Bios via LED

    This allows me to achieve advanced boot options but...

    -safe mode is blocked to CLASSPNP. SYS

    -Last good known Configuration shows a stuck Windows startup screen.

    Can you give me an idea if I can and how to fix it?

    Hello

    Welcome to the Microsoft Community Forum.

    According to my research, this problem may occur if the settings in the BIOS (Basic Input Output System) are changed. You can check the suggestions by macbionik.com , December 13, 2010 and check if this is useful to resolve the issue.

    Laptop hangs at Classpnp.sys file.

    Note:

    BIOS change / semiconductor (CMOS) to complementary metal oxide settings can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the configuration of the BIOS/CMOS settings can be solved. Changes to settings are at your own risk. Contact the hardware manufacturer for more information on changing the settings in the BIOS.

    If the suggestions provided in the post above fails to solve the problem, run the diagnostic tool memory mode WINRE and check if the memory (RAM) installed on the computer works fine.

    http://Windows.Microsoft.com/en-us/Windows7/what-are-the-system-recovery-options-in-Windows-7

    Do we know the State of the question, so that we can help you further.

    Thank you.

  • ZIP Code validation

    Hello

    I currently have a field that is set up for postal codes. The user enters a number 6 digits without spaces, in a format of 3A 3 A3A (number, letter, letter, number, letter, number). When the user moves on, which displays the space between the two.  I wonder if it is possible to have the field allow only zip codes that begin with R or S, and if so, how this could be achieved.

    Thanks in advance for your help,

    Nik

    The problem was related to the mix of the types of validation and management with custom validation errors validation scripts. Models of validation and display and management of validation errors had to be removed for the script works correctly.

    Steve

  • Problem in the code for the adjustment of the length of the column

    I have a column of the item on the stores of the order of the day that this column must be 9 digits
    I'm labour code and examine the field if found 8 figures put zero on the left
    But this code does not work as I want it, although the implementation was done without errors

    DECLARE
    V_ITEM INVENTORIES. TYPE % INV_ITEM;
    START FOR ITEM_CUR IN (SELECT * FROM INVENTORIES) LOOP
    IF length (V_ITEM) = 8 then
    UPDATE OF INVENTORIES SET INV_ITEM = 0 | V_ITEM;
    END IF;
    END LOOP;
    END;

    Dear OracleLover2,

    All columns have the same data because there is no where clause in the update statement and that's why it would update all records.

    I don't know what should be the condition for the update, because this is business logic, which you need to know.

    There was the fundamental problem in the code that I pointed out above in my last comment.

    You write once appropriate where clause in your query of update, it will give you the desired results.

    It will be useful.

    Check the answer as useful / OK, if this can help you

    Carole

  • Store changed from the United Kingdom to China using my old zip code. Now cannot get back. Payment type is NONE, but get requests by charging to add card details.

    Store changed from the United Kingdom to China the other day using my old zip code. Now can not return to the United Kingdom. Payment type is NONE, but get requests in billing add card details that they are not everything. Postal code is changed back to UK. Phone is iOS 4 s 9.2.1. Any ideas how to get back?

    Hi Sandyback,

    Thank you for your participation in the communities of Support from Apple.

    I see that you have changed the country associated with your Apple (iTunes Store account) ID, and now ask you to provide a method of payment. This happens when changing the country on an existing Apple ID, according to why I can't select None when I change my Apple ID payment information?

    If you have changed your country or region

    When you change the country or the region of an Apple ID, you must provide a payment method and update your billing options. If you want to delete your payment method after you change the country or region, you can change your payment information to none.

    You will not be able to see or select the no payment option for one of these reasons. If you don't want to use a credit card, you can use another form of payment, for example, a gift card.

    Sincerely.

  • We could not verify your address. We could not pair your zip code with your state. Please see the bulletin.

    How to solve this "we couldn't verify your address. We could not pair your zip code with your state. Please review. » ?

    Well, the obvious answer is to make sure that the zip code is valid for the State you entered.

  • My camera so far not this problem and all of a sudden I saw this error in various parts of the phone and ask you to consider the problem of error code 1009

    My camera so far not this problem and all of a sudden I saw this error in various parts of the phone and ask you to consider the problem of error code 1009

    Apple ID: *.

    Did you check out this article? Seems to be linked to the AppStore and the country where you're:

    Why my iphon give me error code 1009?

  • Zip code does not match with the Service request number

    Hello
    I can, check the State of repair of my Xbox to the t.
    It keeps giving the same error (ZIP Code does not match with the Service request number).

    I tried to register the product.
    but it seems impossible, if it has a status of repair open.

    a catch 22.

    Hello

    I suggest you go through the following link.

    http://www.Xbox.com/en-us/

Maybe you are looking for

  • I want to reverse the display full page

    I turned on to full page display in the screen of my FB and now can't access all the tools to reverse the trend.I also accidentally decreased the font size & need of restoration, but don't know how.

  • Qosmio F20-154: BSOD and turns off

    Qosmio F20-154 goes to blue screen and turns off if the cd is inserted or if the flash drive is insertedAlso hotkey error on turn on the computer

  • Toshiba Satellite P20 - 404 Drive

    Hello I have a rug * a uj811 dvd - ram drive in my notebook after insertion of a cd that it t could not read, he has stopped working (I think that was the reason). In Device Manager, it is marked as loans and works, but if I click on it in the Soluti

  • EFI boot ROM update problem

    I have a MacBook Pro 8.1 end of 2011. I'm updating the EFI boot ROM. There are currently on an old version, MBP81.0047.B2C. Later I can find is MBP81.0047.2AB since the Mac EFI security update 2015-001. I tried to install this rom to boot, but it wil

  • Isass.EXE - Security Accounts Manager initialization failed OXC0000001 to start Windows XP

    Original title: Isass. EXE-SYSTEM ERROR MESSAGE IS ON AN ANOTHER COMPUTER & WON "T START. This is the error message when I turn on computer ISASS. EXE-system error Security Accounts Manager... Intialzation failed due to the following error: a device