C
Cass
Hi, I'm using Visual Basic Express 2008. I've created a project which
connect to a Microsoft Access Database & displays the records in the
app with the Default Navigation.
I need to add a button which exports the database to a fixed length
text file. Does anyone have the code for this?
So far this is the forms code:
Public Class Customers
Private Sub CustdataBindingNavigatorSaveItem_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
CustdataBindingNavigatorSaveItem.Click
Me.Validate()
Me.CustdataBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.CustdbDataSet)
End Sub
Private Sub Customers_Load(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the
'CustdbDataSet.custdata' table. You can move, or remove it, as needed.
Me.CustdataTableAdapter.Fill(Me.CustdbDataSet.custdata)
End Sub
End Class
When I look at the app.config file it says I am using a OLEDB:
<connectionStrings>
<add name="Custs.My.MySettings.custdbConnectionString"
connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=|DataDirectory|\custdb.mdb"
providerName="System.Data.OleDb" />
</connectionStrings>
Thanks in advance for the help!
connect to a Microsoft Access Database & displays the records in the
app with the Default Navigation.
I need to add a button which exports the database to a fixed length
text file. Does anyone have the code for this?
So far this is the forms code:
Public Class Customers
Private Sub CustdataBindingNavigatorSaveItem_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
CustdataBindingNavigatorSaveItem.Click
Me.Validate()
Me.CustdataBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.CustdbDataSet)
End Sub
Private Sub Customers_Load(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the
'CustdbDataSet.custdata' table. You can move, or remove it, as needed.
Me.CustdataTableAdapter.Fill(Me.CustdbDataSet.custdata)
End Sub
End Class
When I look at the app.config file it says I am using a OLEDB:
<connectionStrings>
<add name="Custs.My.MySettings.custdbConnectionString"
connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=|DataDirectory|\custdb.mdb"
providerName="System.Data.OleDb" />
</connectionStrings>
Thanks in advance for the help!