Results 1 to 5 of 5

Thread: SQL question.

  1. #1
    Guest

    Post

    I need to know how I can load a database from VB. I'm reading info into variables, created the database with VB and SQL commands, but don't know how to wright that info into a particular field in the database.

    Can anyone help?

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    UPDATE MyTable set MyField = 'MyNewValue' where KeyField = MyRecordID

  3. #3
    Guest

    Post

    Ok, looks good, but this is the first time I do this. Can 'MyNewValue' be a variable?

    And do you know of a good Webpage that details these SQL commands with examples?

    AmigaZoid

  4. #4
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    Yes you can use a variable, and yes, I do know of a good web page that is a great reference:
    http://w3.one.net/~jhoffman/sqltut.htm

  5. #5
    Guest

    Post

    Great, Thanks.

    One last question....

    Can any SQL command be used in VB?

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