|
-
Aug 1st, 2005, 11:59 AM
#1
Thread Starter
Lively Member
Problem with Database location?
Hi guys,
Please help me with this..it looks like a simple matter, but i can't find a cure for it..
ok, let'see..
1. on my program's crystal report, I added my database using Add/Remove Database > Database File, and then, adding my .mdb file on the browser...which is located on c:\~\Visual Basic Project\My Project\bin\data.mdb
2. so, when I re-open the properties window of my crystal report, it shows that my database is located on that address..
3. I created the setup file for my program, everything smooth.....then, I install my program onto a test computer.....which is located on....say,
C:\My Program
4.however, when i tried to generate my report, the crystal report generator shows a dialog which says that the database is located on c:\~\Visual Basic Project\My Project\bin\data.mdb
5. I can then fix the problem by re-direct the location to C:\My Program\data.mdb
My question: How to fix this problem by setting the location of my database in Visual Studio as "Application.StartupPath\data.mdb" so the program itself can locate the database on the new computer where it's installed?
PLEASE HELP ME! Thank you in advance.
-Calvin-
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
|