Help plz

Hi Davids,

Thank you for all your help. I think i will just place that on the c drive for now.Because i'm new to vb studio 2005. So i still have many others problem. Could you help me with it. For instance, how would i select the data from access using vb 2005.

Here is the code that i got so far

Imports System.Data

Imports System.Data.OleDb

Imports System.Data.OleDb.OleDbConnection

Imports System.Data.OleDb.OleDbDataAdapter

Public Class Form1

Public Sub OpenDatabaseConnection()

Dim strConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;" & _

"Data Source=C:\Documents\Questions.mdb;"

Dim objConnection As New OleDbConnection(strConnectionString)

objConnection.Open()

MessageBox.Show(objConnection.State.ToString())

End Sub

Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

OpenDatabaseConnection()

End Sub

rivate Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Now from this point on i would like to open my file and print it on the screen. I have been looking through ado.net 2.0 book but it didnt' help much.

End Sub

Thank you



Answer this question

Help plz

  • mary jane

    Use the data controls provided with the IDE. The conneciton wizard should automatically generate the connection code for you and create a nice and neat gridview (depending on the control.)

    ...or you could hard code a grid view which is redundant considering the control(s) will accomplish your desired task.

    Adamus



  • Help plz