Wrox Programmer Forums
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 7th, 2004, 06:13 AM
Authorized User
Join Date: Nov 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to MrDannyP
Default Invalid database Path

Im just a tad confused with my database settings at the moment.

When in Design Mode my selection form my DatabaseName is :

D:\My Applications\Job Database.mdb

My App works fine on my computer. When I create the Install Shield and then place all the files on CD thats fine.

When I installed my App on another computer they could open it but when they went on the form Job Database where all the information for a database is kept, the folloing error occured:

D:\My Applications\Job Database.mdb is not a valid path

What do I need to do for the application to search the directory where its just been installed rather than the directory where I first got my database from when creating the Install Shield?

thankyou for looking

Im new.  Please be gentle :)
Im new.  Please be gentle :)
Old January 7th, 2004, 10:15 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 196
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to jmss66

It is best to create the database in a shared drive like a network server or maybe somebody else's computer and share the drive so everyone can have access to it.

You can then rewrite your code to show the path:

\\server name\my applications\job database.mdb


Similar Threads
Thread Thread Starter Forum Replies Last Post
Invalid report file path rwalker Crystal Reports 1 January 28th, 2009 10:49 AM
using app.path in database path and filename kd8con VB Databases Basics 2 October 25th, 2006 11:45 AM
Invalid report file path cathiec Crystal Reports 0 June 30th, 2005 10:10 AM
Invalid path for MapPath kondin BOOK: ASP.NET Website Programming Problem-Design-Solution 1 February 4th, 2004 11:49 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.