HI Cor and Daniel,
databasepath is the string of the database location. Now all you have to do
is store that location in an XML file and you are all set.
Please let me know if this helps.
Dim sConn As New OleDb.OleDbConnection
sConn.ConnectionString = "Jet OLEDB:Global Partial Bulk Ops=2;Jet
OLEDB:Registry Path=;Jet OLEDB:Database L" & _
"ocking Mode=1;Jet OLEDB:Database Password=;Data Source=" &
databasepath & _
";Password=;Jet OLEDB:Engine T" & _
"ype=5;Jet OLEDB:Global Bulk
Transactions=1;Provider=""Microsoft.Jet.OLEDB.4.0" ";Je" & _
"t OLEDB:System database=;Jet OLEDB:SFP=False;Extended
Properties=;Mode=Share Den" & _
"y None;Jet OLEDB:New Database Password=;Jet OLEDB:Create System
Database=False;J" & _
"et OLEDB:Don't Copy Locale on Compact=False;Jet OLEDB:Compact
Without Replica Re" & _
"pair=False;User ID=Admin;Jet OLEDB:Encrypt Database=False"
"Cor" <no*@non.com> wrote in message
news:uQ**************@TK2MSFTNGP09.phx.gbl...
Hi Daniel,
If you use the wizards, I was always thinking it is imposible, but maybe
you can but I did not see that until now here and I am not using them, so
finding that out has for me a low priority.
But I think that if you do that you can for the same sake not use the
wizard at all.
If you do not use the wizard it is very easy to do.
The resource kit uses samples without the wizard.
http://msdn.microsoft.com/vbasic/vbrkit/default.aspx
And if you have problems installing it
http://msdn.microsoft.com/vbasic/vbr...q/#installvdir
I hope this helps a little bit?
Cor
Hi, is it possible to use a relative path in a Connection
string to access an Access database in a stand alone
visual basic desktop application. All the examples that I
have seen have absolute paths but my application could be
a lot more flexible if it didn't depend on this.