am creating a program that uses a simple database. it runs well on my machine but when i trasfer it another computer, it fails to load the database. this is the code i used to connect to the database 'Data1.DatabaseName = App.Path & "\alldata.mdb"
my programm fails to load database
Page 1 of 14 Replies - 409 Views - Last Post: 06 June 2012 - 03:38 PM
Replies To: my programm fails to load database
#2
Re: my programm fails to load database
Posted 04 June 2012 - 07:21 AM
maybe the alldata.mdb file is missing in the folder where your program is?
#3
Re: my programm fails to load database
Posted 04 June 2012 - 10:53 AM
Where are you storing the DB? Are you installing with an installer or moving the exe on external media?
This post has been edited by guyfromri: 04 June 2012 - 10:54 AM
#4
Re: my programm fails to load database
Posted 06 June 2012 - 03:21 PM
guyfromri, on 04 June 2012 - 10:53 AM, said:
Where are you storing the DB? Are you installing with an installer or moving the exe on external media?
I tried moving the folder containig the programm to another pc and it failed. i then tried the insrtaller made with the package and deployment and it also failed bt it loads perfectly on my pc
Neku, on 04 June 2012 - 07:21 AM, said:
maybe the alldata.mdb file is missing in the folder where your program is?
the database it there in the folder. it generates an error like " class not registered......"
#5
Re: my programm fails to load database
Posted 06 June 2012 - 03:38 PM
Right. Back in 1985, when programs were DOS-based, all you had to do was copy the EXE file and maybe some data files from one place to another, and away you would go. Nowadays it's more complicated. Not only do you have a lot of DLL (Dynamic Link Library) files, you may have images, data files, and any number of other things.
DLL files have to be "registered" on the machine that uses them. When a running EXE asks to run a routine from a DLL, it looks it up in the "registry."
DLL files have to be "registered" on the machine that uses them. When a running EXE asks to run a routine from a DLL, it looks it up in the "registry."
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|