create a code in visual basic 2012 to save data into Microsoft access database. I have already created the forms and I just need to know the code in a 3 tier architecture that will store data into the database. please help I am stuck. I am failing to link the UI forms and the database.
What I have tried:
Public Class MotorRacingDB
Public Shared Function GetConnection() As OleDbConnection
Dim connectionString As String =
"Provider = Microsoft.Jet.OLEBD.4.0;" +
"Data Source = C:\Users\User\Documents\MotorRacing.accdb; persist security info = false"
Return New OleDbConnection(connectionString)
the above is supposed to be the connection between database and GUI