|
-
Feb 23rd, 2003, 11:25 AM
#1
Thread Starter
Member
app path problem
hi
I have my database inside a folder called MyDatabase;
i have my component inside a folder called MyComponent;
my projects and those two folders are together;
My problem is: how to write the connectionstring, inside my component, to get the right path to the database?
now its like this:
cn.ConnectionString = "provider=microsoft.jet.oledb.4.0; data source =" & App.Path & "\..\MyDatabase/db.mdb"
but that simply doesnt work
How can i make it work?
thanks in advance
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|