
Relative Path to Access DB in VB.NET
Thank you so much for your help. But now I am really confused.
I guess I should not use the wizard for the OleDBadapter then? I have about
six of them in my app. Do I also have to receate the datasets?
Steve
Quote:
> Hi:
> This gives you the path (folder) of the executing
> WindowsForms exe -- use this to code the path to the
> database.
> Dim strExe As String
> Dim d As System.IO.FileInfo
> strExe =
> System.Reflection.Assembly.GetExecutingAssembly.Location.To
> String
> d = New System.IO.FileInfo(strExe)
> MsgBox(d.DirectoryName.ToString)
> Naresh
> >-----Original Message-----
> >I need some help please.
> >I coded an application with a hardcoded database link to
> a folder outside of
> >my app. I want to place the Access DB inside my app
> folder and use a
> >relative path to it. So I can use it on anybody's machine.
> >I use a lot of OLE data adapters. Will I have to change
> all of those?
> >Please let me know how I can do this the best way. Thank
> you.
> >Steve
> >.