Results 1 to 3 of 3

Thread: plz help me about (MS access with vb.net)

  1. #1
    hi all
    how to create a database (by system files System.IO and System.Data.OLEDB) in order to add tables in this database.

    the following procedure does not function because create a file with format unknown

    private sub createDB()
    io.file.create("c:\base.mdb")
    end sub



  2. Software & Hardware   -   #2
    Snee's Avatar Error xɐʇuʎs BT Rep: +1
    Join Date
    Sep 2003
    Location
    on something.
    Age
    44
    Posts
    17,985
    Dude, what?

    Are you writing an install script?

    If you aren't, you don't need to recreate it every time you run the program.

    If you are, you probably need to specify a scheme, or structure, or a filetype, just doing it like you do there will just create a useless blob of binary or something, afaik.



    In fact, I'd not bother creating it through VB at all if you're just writing something akin to a graphical interface with a dbase backend.

    I'd just make the database through access, and connect to it.

    Here's a code-sample, though. (The second post.)

    It's from 2005 so it might be easier to do with current .Net, or maybe it needs doing slightly different. But it's a a start.

    More.

    You'll need ADOX for either example.
    Last edited by Snee; 04-12-2008 at 10:04 PM.

  3. Software & Hardware   -   #3
    thinks so mutch Snee

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
  •