softwareinvbnet
Programmer
Hi, I am following a tutorial for vb.net here
I am using Windows 7 & Visual studio 2012 ultimate
In there tutorial the connection string looks like this
dbProvider = "PROVIDER=Microsoft.Jet.OLEDB.4.0;"
dbSource = "Data Source = C:/AddressBook.mdb"
con.ConnectionString = dbProvider & dbSource
When I use this in debug mode it works
What I really want to know is this I want to be able to send this to someone else so they can download it and run it on there windows 7 computer.
So what I did was use the publish option in visual studio and when it published all my files to a folder I had created called databasetest. I then put it in a .rar and emailed it to myself but when I try to run it, I get the error message saying that it cant find C:/AddressBook.mdb
So can anyone help me learn how to do this.
Now if I move my AddressBook.mdb in to the root folder of my C drive it works. But I want to be able to just download and install. It seems a bit of a messy process if I have to keep moving files around after the install to make this work.
Thanks in advance for anyone's help.
I am using Windows 7 & Visual studio 2012 ultimate
In there tutorial the connection string looks like this
dbProvider = "PROVIDER=Microsoft.Jet.OLEDB.4.0;"
dbSource = "Data Source = C:/AddressBook.mdb"
con.ConnectionString = dbProvider & dbSource
When I use this in debug mode it works
What I really want to know is this I want to be able to send this to someone else so they can download it and run it on there windows 7 computer.
So what I did was use the publish option in visual studio and when it published all my files to a folder I had created called databasetest. I then put it in a .rar and emailed it to myself but when I try to run it, I get the error message saying that it cant find C:/AddressBook.mdb
So can anyone help me learn how to do this.
Now if I move my AddressBook.mdb in to the root folder of my C drive it works. But I want to be able to just download and install. It seems a bit of a messy process if I have to keep moving files around after the install to make this work.
Thanks in advance for anyone's help.