Question: I am creating a Visual basic Forum for one of my classes. basically it is just a forum that can edit a database. I am

I am creating a Visual basic Forum for one of my classes. basically it is just a forum that can edit a database. I am using SQLite as my database and it is in my projects folder. The application needs to run on different machines like when i submit it to my teacher. The problem is that when the files are submited via ZIP the database data source changes. Basically i am trying to figure out how to reference the database with a relative or something data source code. so that when the files are opened on another computer It can find/edit the database. Currently my data source looks like this: Dim con As New SQLiteConnection("Data Source=C:\Users\19082\source epos\WinFormsApp1\Risk Management.db") and it works great on my computer, but not on others I am using Visual basic in Visual Studio 2019

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!