Reputation: 1 Apprentice
- Active Posts:
- 47 (0.05 per day)
- 25-April 12
- Profile Views:
- Last Active:
- Jan 24 2014 06:49 PM
- Dream Kudos:
Posts I've Made
Posted 13 Jan 2014Your problem doesn't have anything to do with MS Access installed or not at the machine that generates the error in the picture, as The error says [".........accdb" not a valid path. Make .... etc] which I'm 100% sure that it means that the file Myaccdb.accdb is not present in the target machine whether this machine has MS Access installed or not.
The cause of such error can be many reasons, I.e :
- You did not include the file.accdb in your setup package
- You used explicit path definition [C:\.....\file.accdb] which refers to your own local files, instead of using variables application.startuppath "\folder\in-package\file.accdb"
quick Solution :
From target machine, create this folder(c:\DataFile\) and place (Myaccdb.accdb) file in it.
Next time you deploy application relies on Database :
Deploy your application and include the accdb file at the same place where it's placed in source code. Use Data Source = application.startuppath & "\Myaccdb.accdb" instead of what you use. Note (application.startuppath means [application folder\bin\debug\])
The more complex your application will be the more readings you will attempt.
- Member Title:
- New D.I.C Head
- Age Unknown
- Birthday Unknown