Results 1 to 2 of 2

Thread: [RESOLVED] Creating a new Table thru vb.Net in MS Access 2000

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2007
    Posts
    200

    Resolved [RESOLVED] Creating a new Table thru vb.Net in MS Access 2000

    i already have a database called db1.mdb, and i use oledb to connect to it.

    so how do i create a new table?

  2. #2
    Fanatic Member
    Join Date
    Feb 2007
    Location
    Eindhoven
    Posts
    828

    Re: Creating a new Table thru vb.Net in MS Access 2000

    vb Code:
    1. dim cmd as new oledbCOmmand("Create table ......", "Your Connection to the database here")
    2.  
    3. try
    4.   'open the connection
    5.   cmd.executeNonQuery()
    6. catch ex as exception
    7.    messageBox.Show(ex.Message)
    8. finally
    9.    'close the connection
    10. end try

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