Results 1 to 3 of 3

Thread: Create ms access table

  1. #1
    TechFred is offline VB.NET Forum Newbie
    .NET Framework
    .NET 3.5 (VS 2008)
    Join Date
    Apr 2008
    Posts
    2
    Reputation
    0

    Create ms access table

    I need to create an ms access table in an .mdb file. i've been using this code to do so :
    Code:
    Public con As ADODB.Connection
    con.Open("Provider=Microsoft.Jet.OLEDB.4.0; Data source ='c:\test.mdb';")        
    
    con.Execute("CREATE TABLE Test1 (CustomerID AUTOINCREMENT, Name Char(20), Address Char(30), City Char(30), State Char(2), PostalCode Char(9))")
            
    con.Close()
    The problem is, it lacks of information about it on the web. I mean where i can find the list of the data type i can use? Example : AUTOINCREMENT, Char ......

    Or if there is an another way, more efficient to make tables.

    Thank you

  2. #2
    Stonkie is offline VB.NET Forum Master
    .NET Framework
    .NET 2.0 (VS 2005)
    Join Date
    Sep 2007
    Posts
    279
    Reputation
    119
    You might have better luck looking for Jet SQL... Try this link : http://en.wikibooks.org/wiki/JET_Database
    The human mind's capability to comprehend abstract concepts is limited to the vocabulary it can use to describe it. The more precise the building blocks, the more complex the thoughts that can emerge... Sounds like the evolution of programming languages doesn't it?

  3. #3
    TechFred is offline VB.NET Forum Newbie
    .NET Framework
    .NET 3.5 (VS 2008)
    Join Date
    Apr 2008
    Posts
    2
    Reputation
    0
    Thank you for the link

Bookmarks

Posting Permissions

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