Results 1 to 17 of 17

Thread: [RESOLVED] Yet another SQL issue

Threaded View

  1. #1

    Thread Starter
    Addicted Member MethadoneBoy's Avatar
    Join Date
    Oct 2001
    Location
    Preferably somewhere between Keira Knightley and Diane Kruger but I'm not fussy
    Posts
    180

    [RESOLVED] Yet another SQL issue

    Hi guys,

    I'm having difficulty in getting text from a textbox on a form. What I'm trying to do is use a textbox for completing an SQL statement.

    For example, say the textbox name is txtMonth. I have a String variable called insert

    VB Code:
    1. Dim insert as String
    2.  
    3. insert = txtMonth.txt
    4.  
    5. sqlStmt = "INSERT INTO <Tablename> VALUES ('" & insert "');"

    There are no syntax errors or errors of any kind in the SQL statment, so it must be a problem getting the text from the textbox.

    Any suggestions?

    Thanks
    Last edited by MethadoneBoy; Aug 17th, 2005 at 04:16 AM. Reason: Resolved
    "'Oh, hello Mr. Crick! What do you think of Jeffrey Archer?' Clip-clip-clip! Oh, come on! Who are you kidding? You wait til I'm mayor, you'll see how tough I am! Christ almighty...."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width