Results 1 to 3 of 3

Thread: From VB to Access

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Posts
    1

    Post

    I need to send inputed information from a VB application to an Access database. What is the best method??? Can anyone supply me with an example program/code????
    Thanks

  2. #2
    Hyperactive Member
    Join Date
    Feb 2000
    Posts
    284

    Post

    You need to set up a reference to ADO library 2.0 or 2.1 and then use a command object of the ADODB class to execute a SQL INSERT statement as follows -

    Dim cmd as New ADODB.command
    Dim sSql as string

    sSql = "Insert into tblWhatever......" cmd.ActiveConnection = <Your connection string>
    cmd.CommandType = adCmdUnknown
    cmd.CommandText = sSql
    cmd.Execute

    Hope this helps

  3. #3
    Member
    Join Date
    Oct 1999
    Location
    Snellville, GA, USA
    Posts
    38

    Post

    SAMS SQL in 24 hours, or 21 days are the best I've seen for learning SQL. You will need to understand this to be able to manipulate your data the way you want. Also look for books on ADO.

    -Elias

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