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. Mmmm! The smell of happy users, and happy maintenence coders...

Mmmm! The smell of happy users, and happy maintenence coders...

Scheduled Pinned Locked Moved The Weird and The Wonderful
beta-testingtutorialannouncementlearning
17 Posts 13 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.
  • OriginalGriffO OriginalGriff

    Here is an example from QA - it's from a beginner (Oh Gawd, I hope he's a beginner and this isn't in production code)

    cmd.CommandText = " UPDATE ALLUGTAMIL SET name='" & TextBox2.Text & "',dob='" & TextBox3.Text & "',depart='" & TextBox4.Text & "',p1='" & TextBox5.Text & "',p2='" & TextBox6.Text & "',p3='" & TextBox7.Text & "',p4='" & TextBox8.Text & "',p5='" & TextBox9.Text & "',p6='" & TextBox10.Text & "',p7='" & TextBox11.Text & "',p8='" & TextBox12.Text & "',p9='" & TextBox13.Text & "',p10='" & TextBox14.Text & "',p11='" & TextBox15.Text & "',p12='" & TextBox16.Text & "',p13='" & TextBox17.Text & "',p14='" & TextBox18.Text & "',p15='" & TextBox19.Text & "',p16='" & TextBox20.Text & "',p17='" & TextBox21.Text & "',im1='" & TextBox22.Text & "',ex1='" & TextBox23.Text & "',tot1='" & TextBox24.Text & "',res1='" & TextBox25.Text & "',im2='" & TextBox26.Text & "',em2='" & TextBox27.Text & "',tot2='" & TextBox28.Text & "',res2='" & TextBox29.Text & "',im3='" & TextBox30.Text & "',em3='" & TextBox31.Text & "',tot3='" & TextBox32.Text & "',res3='" & TextBox33.Text & "',im4='" & TextBox34.Text & "',em4='" & TextBox35.Text & "',tot4='" & TextBox36.Text & "',res4='" & TextBox37.Text & "',im5='" & TextBox38.Text & "',em5='" & TextBox39.Text & "',tot5='" & TextBox40.Text & "',res5='" & TextBox41.Text & "',im6='" & TextBox42.Text & "',em6='" & TextBox43.Text & "',tot6='" & TextBox44.Text & "',res6='" & TextBox45.Text & "',im7='" & TextBox46.Text & "',em7='" & TextBox47.Text & "',tot7='" & TextBox48.Text & "',res7='" & TextBox49.Text & "',im8='" & TextBox50.Text & "',em8='" & TextBox51.Text & "',tot8='" & TextBox52.Text & "',res8='" & TextBox53.Text & "',im9='" & TextBox54.Text & "',em9='" & TextBox55.Text & "',tot9='" & TextBox56.Text & "',res9='" & TextBox57.Text & "',im10='" & TextBox58.Text & "',em10='" & TextBox59.Text & "',tot10='" & TextBox60.Text & "',res10='" & TextBox61.Text & "',im11='" & TextBox62.Text & "',em11='" & TextBox63.Text & "',tot11='" & TextBox64.Text & "',res11='" & TextBox65.Text & "'

    A Offline
    A Offline
    Argonia
    wrote on last edited by
    #4

    Hm, i am totally sure you pasted something very similar to this one. Is this from the same author. I want a autograph please.

    Microsoft ... the only place where VARIANT_TRUE != true

    1 Reply Last reply
    0
    • OriginalGriffO OriginalGriff

      Here is an example from QA - it's from a beginner (Oh Gawd, I hope he's a beginner and this isn't in production code)

      cmd.CommandText = " UPDATE ALLUGTAMIL SET name='" & TextBox2.Text & "',dob='" & TextBox3.Text & "',depart='" & TextBox4.Text & "',p1='" & TextBox5.Text & "',p2='" & TextBox6.Text & "',p3='" & TextBox7.Text & "',p4='" & TextBox8.Text & "',p5='" & TextBox9.Text & "',p6='" & TextBox10.Text & "',p7='" & TextBox11.Text & "',p8='" & TextBox12.Text & "',p9='" & TextBox13.Text & "',p10='" & TextBox14.Text & "',p11='" & TextBox15.Text & "',p12='" & TextBox16.Text & "',p13='" & TextBox17.Text & "',p14='" & TextBox18.Text & "',p15='" & TextBox19.Text & "',p16='" & TextBox20.Text & "',p17='" & TextBox21.Text & "',im1='" & TextBox22.Text & "',ex1='" & TextBox23.Text & "',tot1='" & TextBox24.Text & "',res1='" & TextBox25.Text & "',im2='" & TextBox26.Text & "',em2='" & TextBox27.Text & "',tot2='" & TextBox28.Text & "',res2='" & TextBox29.Text & "',im3='" & TextBox30.Text & "',em3='" & TextBox31.Text & "',tot3='" & TextBox32.Text & "',res3='" & TextBox33.Text & "',im4='" & TextBox34.Text & "',em4='" & TextBox35.Text & "',tot4='" & TextBox36.Text & "',res4='" & TextBox37.Text & "',im5='" & TextBox38.Text & "',em5='" & TextBox39.Text & "',tot5='" & TextBox40.Text & "',res5='" & TextBox41.Text & "',im6='" & TextBox42.Text & "',em6='" & TextBox43.Text & "',tot6='" & TextBox44.Text & "',res6='" & TextBox45.Text & "',im7='" & TextBox46.Text & "',em7='" & TextBox47.Text & "',tot7='" & TextBox48.Text & "',res7='" & TextBox49.Text & "',im8='" & TextBox50.Text & "',em8='" & TextBox51.Text & "',tot8='" & TextBox52.Text & "',res8='" & TextBox53.Text & "',im9='" & TextBox54.Text & "',em9='" & TextBox55.Text & "',tot9='" & TextBox56.Text & "',res9='" & TextBox57.Text & "',im10='" & TextBox58.Text & "',em10='" & TextBox59.Text & "',tot10='" & TextBox60.Text & "',res10='" & TextBox61.Text & "',im11='" & TextBox62.Text & "',em11='" & TextBox63.Text & "',tot11='" & TextBox64.Text & "',res11='" & TextBox65.Text & "'

      V Offline
      V Offline
      V 0
      wrote on last edited by
      #5

      Please, send it here[^] :-D

      V.
      (MQOTD Rules and previous Solutions )

      1 Reply Last reply
      0
      • OriginalGriffO OriginalGriff

        Here is an example from QA - it's from a beginner (Oh Gawd, I hope he's a beginner and this isn't in production code)

        cmd.CommandText = " UPDATE ALLUGTAMIL SET name='" & TextBox2.Text & "',dob='" & TextBox3.Text & "',depart='" & TextBox4.Text & "',p1='" & TextBox5.Text & "',p2='" & TextBox6.Text & "',p3='" & TextBox7.Text & "',p4='" & TextBox8.Text & "',p5='" & TextBox9.Text & "',p6='" & TextBox10.Text & "',p7='" & TextBox11.Text & "',p8='" & TextBox12.Text & "',p9='" & TextBox13.Text & "',p10='" & TextBox14.Text & "',p11='" & TextBox15.Text & "',p12='" & TextBox16.Text & "',p13='" & TextBox17.Text & "',p14='" & TextBox18.Text & "',p15='" & TextBox19.Text & "',p16='" & TextBox20.Text & "',p17='" & TextBox21.Text & "',im1='" & TextBox22.Text & "',ex1='" & TextBox23.Text & "',tot1='" & TextBox24.Text & "',res1='" & TextBox25.Text & "',im2='" & TextBox26.Text & "',em2='" & TextBox27.Text & "',tot2='" & TextBox28.Text & "',res2='" & TextBox29.Text & "',im3='" & TextBox30.Text & "',em3='" & TextBox31.Text & "',tot3='" & TextBox32.Text & "',res3='" & TextBox33.Text & "',im4='" & TextBox34.Text & "',em4='" & TextBox35.Text & "',tot4='" & TextBox36.Text & "',res4='" & TextBox37.Text & "',im5='" & TextBox38.Text & "',em5='" & TextBox39.Text & "',tot5='" & TextBox40.Text & "',res5='" & TextBox41.Text & "',im6='" & TextBox42.Text & "',em6='" & TextBox43.Text & "',tot6='" & TextBox44.Text & "',res6='" & TextBox45.Text & "',im7='" & TextBox46.Text & "',em7='" & TextBox47.Text & "',tot7='" & TextBox48.Text & "',res7='" & TextBox49.Text & "',im8='" & TextBox50.Text & "',em8='" & TextBox51.Text & "',tot8='" & TextBox52.Text & "',res8='" & TextBox53.Text & "',im9='" & TextBox54.Text & "',em9='" & TextBox55.Text & "',tot9='" & TextBox56.Text & "',res9='" & TextBox57.Text & "',im10='" & TextBox58.Text & "',em10='" & TextBox59.Text & "',tot10='" & TextBox60.Text & "',res10='" & TextBox61.Text & "',im11='" & TextBox62.Text & "',em11='" & TextBox63.Text & "',tot11='" & TextBox64.Text & "',res11='" & TextBox65.Text & "'

        B Offline
        B Offline
        Bernhard Hiller
        wrote on last edited by
        #6

        At least did he try to keep this thing readable: Note the extra spaces before UPDATE ind in the WHERE clause.

        T 1 Reply Last reply
        0
        • B Bernhard Hiller

          At least did he try to keep this thing readable: Note the extra spaces before UPDATE ind in the WHERE clause.

          T Offline
          T Offline
          Thomas Daniels
          wrote on last edited by
          #7

          Bernhard Hiller wrote:

          At least did he Visual Studio try to keep this thing readable: Note the extra spaces before UPDATE ind in the WHERE clause.

          FTFY!

          The quick red ProgramFOX jumps right over the Lazy<Dog>. My latest article: Understand how bitwise operators work (C# and VB.NET examples) My group: C# Programmers Group

          1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            Here is an example from QA - it's from a beginner (Oh Gawd, I hope he's a beginner and this isn't in production code)

            cmd.CommandText = " UPDATE ALLUGTAMIL SET name='" & TextBox2.Text & "',dob='" & TextBox3.Text & "',depart='" & TextBox4.Text & "',p1='" & TextBox5.Text & "',p2='" & TextBox6.Text & "',p3='" & TextBox7.Text & "',p4='" & TextBox8.Text & "',p5='" & TextBox9.Text & "',p6='" & TextBox10.Text & "',p7='" & TextBox11.Text & "',p8='" & TextBox12.Text & "',p9='" & TextBox13.Text & "',p10='" & TextBox14.Text & "',p11='" & TextBox15.Text & "',p12='" & TextBox16.Text & "',p13='" & TextBox17.Text & "',p14='" & TextBox18.Text & "',p15='" & TextBox19.Text & "',p16='" & TextBox20.Text & "',p17='" & TextBox21.Text & "',im1='" & TextBox22.Text & "',ex1='" & TextBox23.Text & "',tot1='" & TextBox24.Text & "',res1='" & TextBox25.Text & "',im2='" & TextBox26.Text & "',em2='" & TextBox27.Text & "',tot2='" & TextBox28.Text & "',res2='" & TextBox29.Text & "',im3='" & TextBox30.Text & "',em3='" & TextBox31.Text & "',tot3='" & TextBox32.Text & "',res3='" & TextBox33.Text & "',im4='" & TextBox34.Text & "',em4='" & TextBox35.Text & "',tot4='" & TextBox36.Text & "',res4='" & TextBox37.Text & "',im5='" & TextBox38.Text & "',em5='" & TextBox39.Text & "',tot5='" & TextBox40.Text & "',res5='" & TextBox41.Text & "',im6='" & TextBox42.Text & "',em6='" & TextBox43.Text & "',tot6='" & TextBox44.Text & "',res6='" & TextBox45.Text & "',im7='" & TextBox46.Text & "',em7='" & TextBox47.Text & "',tot7='" & TextBox48.Text & "',res7='" & TextBox49.Text & "',im8='" & TextBox50.Text & "',em8='" & TextBox51.Text & "',tot8='" & TextBox52.Text & "',res8='" & TextBox53.Text & "',im9='" & TextBox54.Text & "',em9='" & TextBox55.Text & "',tot9='" & TextBox56.Text & "',res9='" & TextBox57.Text & "',im10='" & TextBox58.Text & "',em10='" & TextBox59.Text & "',tot10='" & TextBox60.Text & "',res10='" & TextBox61.Text & "',im11='" & TextBox62.Text & "',em11='" & TextBox63.Text & "',tot11='" & TextBox64.Text & "',res11='" & TextBox65.Text & "'

            Richard DeemingR Offline
            Richard DeemingR Offline
            Richard Deeming
            wrote on last edited by
            #8

            Ah, I think I see the problem - it's VB! ;P


            "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

            "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

            N 1 Reply Last reply
            0
            • Richard DeemingR Richard Deeming

              Ah, I think I see the problem - it's VB! ;P


              "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

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

              I think this time VB has nothing to do with it!

              Reality is an illusion caused by a lack of alcohol "Nagy, you have won the internets." - Keith Barrow

              1 Reply Last reply
              0
              • OriginalGriffO OriginalGriff

                Here is an example from QA - it's from a beginner (Oh Gawd, I hope he's a beginner and this isn't in production code)

                cmd.CommandText = " UPDATE ALLUGTAMIL SET name='" & TextBox2.Text & "',dob='" & TextBox3.Text & "',depart='" & TextBox4.Text & "',p1='" & TextBox5.Text & "',p2='" & TextBox6.Text & "',p3='" & TextBox7.Text & "',p4='" & TextBox8.Text & "',p5='" & TextBox9.Text & "',p6='" & TextBox10.Text & "',p7='" & TextBox11.Text & "',p8='" & TextBox12.Text & "',p9='" & TextBox13.Text & "',p10='" & TextBox14.Text & "',p11='" & TextBox15.Text & "',p12='" & TextBox16.Text & "',p13='" & TextBox17.Text & "',p14='" & TextBox18.Text & "',p15='" & TextBox19.Text & "',p16='" & TextBox20.Text & "',p17='" & TextBox21.Text & "',im1='" & TextBox22.Text & "',ex1='" & TextBox23.Text & "',tot1='" & TextBox24.Text & "',res1='" & TextBox25.Text & "',im2='" & TextBox26.Text & "',em2='" & TextBox27.Text & "',tot2='" & TextBox28.Text & "',res2='" & TextBox29.Text & "',im3='" & TextBox30.Text & "',em3='" & TextBox31.Text & "',tot3='" & TextBox32.Text & "',res3='" & TextBox33.Text & "',im4='" & TextBox34.Text & "',em4='" & TextBox35.Text & "',tot4='" & TextBox36.Text & "',res4='" & TextBox37.Text & "',im5='" & TextBox38.Text & "',em5='" & TextBox39.Text & "',tot5='" & TextBox40.Text & "',res5='" & TextBox41.Text & "',im6='" & TextBox42.Text & "',em6='" & TextBox43.Text & "',tot6='" & TextBox44.Text & "',res6='" & TextBox45.Text & "',im7='" & TextBox46.Text & "',em7='" & TextBox47.Text & "',tot7='" & TextBox48.Text & "',res7='" & TextBox49.Text & "',im8='" & TextBox50.Text & "',em8='" & TextBox51.Text & "',tot8='" & TextBox52.Text & "',res8='" & TextBox53.Text & "',im9='" & TextBox54.Text & "',em9='" & TextBox55.Text & "',tot9='" & TextBox56.Text & "',res9='" & TextBox57.Text & "',im10='" & TextBox58.Text & "',em10='" & TextBox59.Text & "',tot10='" & TextBox60.Text & "',res10='" & TextBox61.Text & "',im11='" & TextBox62.Text & "',em11='" & TextBox63.Text & "',tot11='" & TextBox64.Text & "',res11='" & TextBox65.Text & "'

                B Offline
                B Offline
                Bernhard Hiller
                wrote on last edited by
                #10

                OriginalGriff wrote:

                UPDATE ALLUGTAMIL

                You failed to see the actual problem: the textboxes contain text in TAMIL characters, but in the database varchar fields were used instead of nvarchar... :)

                OriginalGriffO 1 Reply Last reply
                0
                • B Bernhard Hiller

                  OriginalGriff wrote:

                  UPDATE ALLUGTAMIL

                  You failed to see the actual problem: the textboxes contain text in TAMIL characters, but in the database varchar fields were used instead of nvarchar... :)

                  OriginalGriffO Offline
                  OriginalGriffO Offline
                  OriginalGriff
                  wrote on last edited by
                  #11

                  :doh: Note to self: remove tin-foil hat before answering questions...

                  This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre. Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.

                  "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                  "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                  1 Reply Last reply
                  0
                  • OriginalGriffO OriginalGriff

                    Here is an example from QA - it's from a beginner (Oh Gawd, I hope he's a beginner and this isn't in production code)

                    cmd.CommandText = " UPDATE ALLUGTAMIL SET name='" & TextBox2.Text & "',dob='" & TextBox3.Text & "',depart='" & TextBox4.Text & "',p1='" & TextBox5.Text & "',p2='" & TextBox6.Text & "',p3='" & TextBox7.Text & "',p4='" & TextBox8.Text & "',p5='" & TextBox9.Text & "',p6='" & TextBox10.Text & "',p7='" & TextBox11.Text & "',p8='" & TextBox12.Text & "',p9='" & TextBox13.Text & "',p10='" & TextBox14.Text & "',p11='" & TextBox15.Text & "',p12='" & TextBox16.Text & "',p13='" & TextBox17.Text & "',p14='" & TextBox18.Text & "',p15='" & TextBox19.Text & "',p16='" & TextBox20.Text & "',p17='" & TextBox21.Text & "',im1='" & TextBox22.Text & "',ex1='" & TextBox23.Text & "',tot1='" & TextBox24.Text & "',res1='" & TextBox25.Text & "',im2='" & TextBox26.Text & "',em2='" & TextBox27.Text & "',tot2='" & TextBox28.Text & "',res2='" & TextBox29.Text & "',im3='" & TextBox30.Text & "',em3='" & TextBox31.Text & "',tot3='" & TextBox32.Text & "',res3='" & TextBox33.Text & "',im4='" & TextBox34.Text & "',em4='" & TextBox35.Text & "',tot4='" & TextBox36.Text & "',res4='" & TextBox37.Text & "',im5='" & TextBox38.Text & "',em5='" & TextBox39.Text & "',tot5='" & TextBox40.Text & "',res5='" & TextBox41.Text & "',im6='" & TextBox42.Text & "',em6='" & TextBox43.Text & "',tot6='" & TextBox44.Text & "',res6='" & TextBox45.Text & "',im7='" & TextBox46.Text & "',em7='" & TextBox47.Text & "',tot7='" & TextBox48.Text & "',res7='" & TextBox49.Text & "',im8='" & TextBox50.Text & "',em8='" & TextBox51.Text & "',tot8='" & TextBox52.Text & "',res8='" & TextBox53.Text & "',im9='" & TextBox54.Text & "',em9='" & TextBox55.Text & "',tot9='" & TextBox56.Text & "',res9='" & TextBox57.Text & "',im10='" & TextBox58.Text & "',em10='" & TextBox59.Text & "',tot10='" & TextBox60.Text & "',res10='" & TextBox61.Text & "',im11='" & TextBox62.Text & "',em11='" & TextBox63.Text & "',tot11='" & TextBox64.Text & "',res11='" & TextBox65.Text & "'

                    P Offline
                    P Offline
                    PIEBALDconsult
                    wrote on last edited by
                    #12

                    OriginalGriff wrote:

                    I hope he's a beginner

                    OriginalGriff wrote:

                    no breaks

                    Yes, well everyone knows that only senior devs are allowed to use the line continuation character. If we let all VB devs use it then the hierarchy would break down. <ExcuseMe>I just wanted to underscore that.</ExcuseMe>

                    OriginalGriffO 1 Reply Last reply
                    0
                    • P PIEBALDconsult

                      OriginalGriff wrote:

                      I hope he's a beginner

                      OriginalGriff wrote:

                      no breaks

                      Yes, well everyone knows that only senior devs are allowed to use the line continuation character. If we let all VB devs use it then the hierarchy would break down. <ExcuseMe>I just wanted to underscore that.</ExcuseMe>

                      OriginalGriffO Offline
                      OriginalGriffO Offline
                      OriginalGriff
                      wrote on last edited by
                      #13

                      Whoo hoo! That means I'm a Senior Developer! Does that mean I get a pay rise?

                      This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre. Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.

                      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                      P 1 Reply Last reply
                      0
                      • OriginalGriffO OriginalGriff

                        Whoo hoo! That means I'm a Senior Developer! Does that mean I get a pay rise?

                        This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre. Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.

                        P Offline
                        P Offline
                        PIEBALDconsult
                        wrote on last edited by
                        #14

                        OriginalGriff wrote:

                        Does that mean I get a pay rise?

                        You already did.

                        1 Reply Last reply
                        0
                        • OriginalGriffO OriginalGriff

                          Here is an example from QA - it's from a beginner (Oh Gawd, I hope he's a beginner and this isn't in production code)

                          cmd.CommandText = " UPDATE ALLUGTAMIL SET name='" & TextBox2.Text & "',dob='" & TextBox3.Text & "',depart='" & TextBox4.Text & "',p1='" & TextBox5.Text & "',p2='" & TextBox6.Text & "',p3='" & TextBox7.Text & "',p4='" & TextBox8.Text & "',p5='" & TextBox9.Text & "',p6='" & TextBox10.Text & "',p7='" & TextBox11.Text & "',p8='" & TextBox12.Text & "',p9='" & TextBox13.Text & "',p10='" & TextBox14.Text & "',p11='" & TextBox15.Text & "',p12='" & TextBox16.Text & "',p13='" & TextBox17.Text & "',p14='" & TextBox18.Text & "',p15='" & TextBox19.Text & "',p16='" & TextBox20.Text & "',p17='" & TextBox21.Text & "',im1='" & TextBox22.Text & "',ex1='" & TextBox23.Text & "',tot1='" & TextBox24.Text & "',res1='" & TextBox25.Text & "',im2='" & TextBox26.Text & "',em2='" & TextBox27.Text & "',tot2='" & TextBox28.Text & "',res2='" & TextBox29.Text & "',im3='" & TextBox30.Text & "',em3='" & TextBox31.Text & "',tot3='" & TextBox32.Text & "',res3='" & TextBox33.Text & "',im4='" & TextBox34.Text & "',em4='" & TextBox35.Text & "',tot4='" & TextBox36.Text & "',res4='" & TextBox37.Text & "',im5='" & TextBox38.Text & "',em5='" & TextBox39.Text & "',tot5='" & TextBox40.Text & "',res5='" & TextBox41.Text & "',im6='" & TextBox42.Text & "',em6='" & TextBox43.Text & "',tot6='" & TextBox44.Text & "',res6='" & TextBox45.Text & "',im7='" & TextBox46.Text & "',em7='" & TextBox47.Text & "',tot7='" & TextBox48.Text & "',res7='" & TextBox49.Text & "',im8='" & TextBox50.Text & "',em8='" & TextBox51.Text & "',tot8='" & TextBox52.Text & "',res8='" & TextBox53.Text & "',im9='" & TextBox54.Text & "',em9='" & TextBox55.Text & "',tot9='" & TextBox56.Text & "',res9='" & TextBox57.Text & "',im10='" & TextBox58.Text & "',em10='" & TextBox59.Text & "',tot10='" & TextBox60.Text & "',res10='" & TextBox61.Text & "',im11='" & TextBox62.Text & "',em11='" & TextBox63.Text & "',tot11='" & TextBox64.Text & "',res11='" & TextBox65.Text & "'

                          R Offline
                          R Offline
                          Richard C Bishop
                          wrote on last edited by
                          #15

                          The only thing I see wrong with that UPDATE statement is the naming convention of the textboxes.

                          J 1 Reply Last reply
                          0
                          • OriginalGriffO OriginalGriff

                            Here is an example from QA - it's from a beginner (Oh Gawd, I hope he's a beginner and this isn't in production code)

                            cmd.CommandText = " UPDATE ALLUGTAMIL SET name='" & TextBox2.Text & "',dob='" & TextBox3.Text & "',depart='" & TextBox4.Text & "',p1='" & TextBox5.Text & "',p2='" & TextBox6.Text & "',p3='" & TextBox7.Text & "',p4='" & TextBox8.Text & "',p5='" & TextBox9.Text & "',p6='" & TextBox10.Text & "',p7='" & TextBox11.Text & "',p8='" & TextBox12.Text & "',p9='" & TextBox13.Text & "',p10='" & TextBox14.Text & "',p11='" & TextBox15.Text & "',p12='" & TextBox16.Text & "',p13='" & TextBox17.Text & "',p14='" & TextBox18.Text & "',p15='" & TextBox19.Text & "',p16='" & TextBox20.Text & "',p17='" & TextBox21.Text & "',im1='" & TextBox22.Text & "',ex1='" & TextBox23.Text & "',tot1='" & TextBox24.Text & "',res1='" & TextBox25.Text & "',im2='" & TextBox26.Text & "',em2='" & TextBox27.Text & "',tot2='" & TextBox28.Text & "',res2='" & TextBox29.Text & "',im3='" & TextBox30.Text & "',em3='" & TextBox31.Text & "',tot3='" & TextBox32.Text & "',res3='" & TextBox33.Text & "',im4='" & TextBox34.Text & "',em4='" & TextBox35.Text & "',tot4='" & TextBox36.Text & "',res4='" & TextBox37.Text & "',im5='" & TextBox38.Text & "',em5='" & TextBox39.Text & "',tot5='" & TextBox40.Text & "',res5='" & TextBox41.Text & "',im6='" & TextBox42.Text & "',em6='" & TextBox43.Text & "',tot6='" & TextBox44.Text & "',res6='" & TextBox45.Text & "',im7='" & TextBox46.Text & "',em7='" & TextBox47.Text & "',tot7='" & TextBox48.Text & "',res7='" & TextBox49.Text & "',im8='" & TextBox50.Text & "',em8='" & TextBox51.Text & "',tot8='" & TextBox52.Text & "',res8='" & TextBox53.Text & "',im9='" & TextBox54.Text & "',em9='" & TextBox55.Text & "',tot9='" & TextBox56.Text & "',res9='" & TextBox57.Text & "',im10='" & TextBox58.Text & "',em10='" & TextBox59.Text & "',tot10='" & TextBox60.Text & "',res10='" & TextBox61.Text & "',im11='" & TextBox62.Text & "',em11='" & TextBox63.Text & "',tot11='" & TextBox64.Text & "',res11='" & TextBox65.Text & "'

                            M Offline
                            M Offline
                            MarkRHolbrook
                            wrote on last edited by
                            #16

                            Ok I wanna know just exactly how you broken into our TFS and downloaded the code from one of our files!? :)

                            1 Reply Last reply
                            0
                            • R Richard C Bishop

                              The only thing I see wrong with that UPDATE statement is the naming convention of the textboxes.

                              J Offline
                              J Offline
                              Jean A Brandelero
                              wrote on last edited by
                              #17

                              Read it again. ahah

                              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