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. General Programming
  3. Visual Basic
  4. Visual Basic to Access

Visual Basic to Access

Scheduled Pinned Locked Moved Visual Basic
helpquestion
6 Posts 4 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.
  • R Offline
    R Offline
    Ronak085
    wrote on last edited by
    #1

    I am using Visual Basic to make a website and I want a user to be able to enter things in a Textbox and have that information put into access. I am using a Inset statement but it does not work. I am useing: INSERT INTO Results (Application_contact) VALUES (AC.[text]) And it does not work does anyone have any ideas how i can have the textbox information put into a access?? PLEASE HELP!!

    C J H 3 Replies Last reply
    0
    • R Ronak085

      I am using Visual Basic to make a website and I want a user to be able to enter things in a Textbox and have that information put into access. I am using a Inset statement but it does not work. I am useing: INSERT INTO Results (Application_contact) VALUES (AC.[text]) And it does not work does anyone have any ideas how i can have the textbox information put into a access?? PLEASE HELP!!

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Ronak085 wrote:

      INSERT INTO Results (Application_contact) VALUES (AC.[text])

      What is AC, and how are you using this code, in Access ? What does 'does not work' mean ? Does it compile ? What does it do ?

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      R 1 Reply Last reply
      0
      • R Ronak085

        I am using Visual Basic to make a website and I want a user to be able to enter things in a Textbox and have that information put into access. I am using a Inset statement but it does not work. I am useing: INSERT INTO Results (Application_contact) VALUES (AC.[text]) And it does not work does anyone have any ideas how i can have the textbox information put into a access?? PLEASE HELP!!

        J Offline
        J Offline
        jonathan15
        wrote on last edited by
        #3

        Am i correct in thinking Application_contact is a field name and AC.[text] is the text within a textbox named AC? If i am correct then the SQL code is wrong. This part

        Ronak085 wrote:

        VALUES (AC.[text])

        will do nothing. For example if you wanted to insert the text 'AC.[text]' then the code would need to look like: VALUES ('AC.[text]') (note a string literal must be enclosed '') if AC.[text] is a variable (which i think it is) it needs to be: VALUES ( '" & AC.[text] & "') string variables must be enclosed '" & & "' Numerics are " & & " and with Access dates are #" & & "# #EDIT# And before anyone else nags me about it. I know parameterized queries are better. Jon

        R 1 Reply Last reply
        0
        • R Ronak085

          I am using Visual Basic to make a website and I want a user to be able to enter things in a Textbox and have that information put into access. I am using a Inset statement but it does not work. I am useing: INSERT INTO Results (Application_contact) VALUES (AC.[text]) And it does not work does anyone have any ideas how i can have the textbox information put into a access?? PLEASE HELP!!

          H Offline
          H Offline
          haggenx
          wrote on last edited by
          #4

          you should try AC.value, i programming in vba of access 2003 and i haven't access to control.text except if he has focus, i use value property to get text from text field.

          Manuel say: Greetings from Mexico, Cuando salga el sol, no estare aqui... --------------------------------------- Web: http://www.otakuzone-fanzine.com Forum: http://www.otakuzone-fanzine.com/foro

          1 Reply Last reply
          0
          • C Christian Graus

            Ronak085 wrote:

            INSERT INTO Results (Application_contact) VALUES (AC.[text])

            What is AC, and how are you using this code, in Access ? What does 'does not work' mean ? Does it compile ? What does it do ?

            Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

            R Offline
            R Offline
            Ronak085
            wrote on last edited by
            #5

            AC.text is a textbox that a user can input information and I would like that information to be put into a access database.

            1 Reply Last reply
            0
            • J jonathan15

              Am i correct in thinking Application_contact is a field name and AC.[text] is the text within a textbox named AC? If i am correct then the SQL code is wrong. This part

              Ronak085 wrote:

              VALUES (AC.[text])

              will do nothing. For example if you wanted to insert the text 'AC.[text]' then the code would need to look like: VALUES ('AC.[text]') (note a string literal must be enclosed '') if AC.[text] is a variable (which i think it is) it needs to be: VALUES ( '" & AC.[text] & "') string variables must be enclosed '" & & "' Numerics are " & & " and with Access dates are #" & & "# #EDIT# And before anyone else nags me about it. I know parameterized queries are better. Jon

              R Offline
              R Offline
              Ronak085
              wrote on last edited by
              #6

              Since AC is the text box name and i want to convert what the user inputs into the text box to be brought to the access database. None of the follow work for me.

              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