Click here to Skip to main content
13,138,791 members (53,796 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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:

Imports System.Data.OleDb

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)

End Function
End Class

the above is supposed to be the connection between database and GUI
Posted 5 days ago
j snooze 5 days ago
I am only guessing here, but did you try searching using google first? You will get many many results and code samples from that.
Graeme_Grant 5 days ago
Why do you need that design? Do you understand what the 3 tiers would be and where that design would be applicable to use?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.170915.1 | Last Updated 13 Sep 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100