Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. WTF Name Field [modified*2]

WTF Name Field [modified*2]

Scheduled Pinned Locked Moved The Weird and The Wonderful
databasecsharpdesigntutorial
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Brady Kelly
    wrote on last edited by
    #1

    I've just come across the following query in an Access ( X| ) application. It's supposed to run against a SQL database, but is littered with it's own views against the real database. The Name field stores a name as '[surname]; [firstname]', which makes queries unwieldy enough, but I just love how the guess the person's initials:

    Left([Name],IIf(InStr([name],';')=0,Len([Name]),InStr([name],';')-1)) AS Surname,
    Right([Name],Len([Name])-InStr([name],';')) AS Firstname,
    Left([Name],2) AS Initials,

    Now a related table stores a name as '[surname] [firstname]', and the drop-down for filtering that table has surname and first name as two separate columns. Names have no key values, and just 'exist'. The UI looks like it was designed by a three-year old on acid, and it's anybodies guess which button is going to work and which isn't. Here are example 1[^] and example 2[^] of the Access UI.


    Last modified: 51hrs 13mins after originally posted --

    Z N 2 Replies Last reply
    0
    • B Brady Kelly

      I've just come across the following query in an Access ( X| ) application. It's supposed to run against a SQL database, but is littered with it's own views against the real database. The Name field stores a name as '[surname]; [firstname]', which makes queries unwieldy enough, but I just love how the guess the person's initials:

      Left([Name],IIf(InStr([name],';')=0,Len([Name]),InStr([name],';')-1)) AS Surname,
      Right([Name],Len([Name])-InStr([name],';')) AS Firstname,
      Left([Name],2) AS Initials,

      Now a related table stores a name as '[surname] [firstname]', and the drop-down for filtering that table has surname and first name as two separate columns. Names have no key values, and just 'exist'. The UI looks like it was designed by a three-year old on acid, and it's anybodies guess which button is going to work and which isn't. Here are example 1[^] and example 2[^] of the Access UI.


      Last modified: 51hrs 13mins after originally posted --

      Z Offline
      Z Offline
      ZaoWuYa
      wrote on last edited by
      #2

      LOL, SABS = SA Bureau of Standards???

      B 1 Reply Last reply
      0
      • Z ZaoWuYa

        LOL, SABS = SA Bureau of Standards???

        B Offline
        B Offline
        Brady Kelly
        wrote on last edited by
        #3

        Yes! :~

        Z 1 Reply Last reply
        0
        • B Brady Kelly

          I've just come across the following query in an Access ( X| ) application. It's supposed to run against a SQL database, but is littered with it's own views against the real database. The Name field stores a name as '[surname]; [firstname]', which makes queries unwieldy enough, but I just love how the guess the person's initials:

          Left([Name],IIf(InStr([name],';')=0,Len([Name]),InStr([name],';')-1)) AS Surname,
          Right([Name],Len([Name])-InStr([name],';')) AS Firstname,
          Left([Name],2) AS Initials,

          Now a related table stores a name as '[surname] [firstname]', and the drop-down for filtering that table has surname and first name as two separate columns. Names have no key values, and just 'exist'. The UI looks like it was designed by a three-year old on acid, and it's anybodies guess which button is going to work and which isn't. Here are example 1[^] and example 2[^] of the Access UI.


          Last modified: 51hrs 13mins after originally posted --

          N Offline
          N Offline
          Nagy Vilmos
          wrote on last edited by
          #4

          Brad (can I call you Brad?), forget about the code. That is not an UI, it is 'test bed button box from hell' gone mad. With cream. My advice is to use the force. If you can't use the force, use a sledgehammer.


          Panic, Chaos, Destruction. My work here is done.

          B 1 Reply Last reply
          0
          • N Nagy Vilmos

            Brad (can I call you Brad?), forget about the code. That is not an UI, it is 'test bed button box from hell' gone mad. With cream. My advice is to use the force. If you can't use the force, use a sledgehammer.


            Panic, Chaos, Destruction. My work here is done.

            B Offline
            B Offline
            Brady Kelly
            wrote on last edited by
            #5

            My brief is to add the Access functionality to their intranet app. Mine looks prettier, but I've had to forego data integrity checks etc. just to get it to work. I have another brief to actually revise the whole web app, where I have the opportunity to introduce some modicum of sense. :)

            1 Reply Last reply
            0
            • B Brady Kelly

              Yes! :~

              Z Offline
              Z Offline
              ZaoWuYa
              wrote on last edited by
              #6

              I can't resist. "Standards are slipping!"

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups