Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. How VB dotnet work with Access Database

How VB dotnet work with Access Database

Scheduled Pinned Locked Moved Visual Basic
csharpdatabasetutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    azusakt
    wrote on last edited by
    #1

    Hi, I'm fresh to VB dotnet,but now I'm doing a project which need to work with an Access database. Could you please give me a brief or example showing me that how can I load the database and access the datas.. Thank you so much

    J 1 Reply Last reply
    0
    • A azusakt

      Hi, I'm fresh to VB dotnet,but now I'm doing a project which need to work with an Access database. Could you please give me a brief or example showing me that how can I load the database and access the datas.. Thank you so much

      J Offline
      J Offline
      Jats_4ru
      wrote on last edited by
      #2

      Connection String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=;Jet OLEDB:System Database=system.mdw;" strSQL="QUERY" ' LOAD and ACCESS DB Try cnSQL = New OleDbConnection(ConnectionString) cnSQL.Open() cmSQL = New OleDbCommand(strSQL, cnSQL) drSQL = cmSQL.ExecuteReader() If drSQL.Read() Then End If drSQL.Close() cnSQL.Close() cmSQL.Dispose() Catch Exp As OleDbException MsgBox(Exp.Message, MsgBoxStyle.Critical, "Oledb Error") Catch Exp As Exception MsgBox(Exp.Message, MsgBoxStyle.Critical, "General Error") End Try Jats

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups