4 Replies - 409 Views - Last Post: 06 June 2012 - 03:38 PM Rate Topic: -----

#1 lisbon  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 04-June 12

my programm fails to load database

Posted 04 June 2012 - 04:12 AM

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"
Is This A Good Question/Topic? 0
  • +

Replies To: my programm fails to load database

#2 Neku  Icon User is offline

  • D.I.C Regular

Reputation: 18
  • View blog
  • Posts: 255
  • Joined: 21-May 09

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?
Was This Post Helpful? 0
  • +
  • -

#3 guyfromri  Icon User is offline

  • D.I.C Addict

Reputation: 43
  • View blog
  • Posts: 777
  • Joined: 16-September 09

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

Was This Post Helpful? 0
  • +
  • -

#4 lisbon  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 04-June 12

Re: my programm fails to load database

Posted 06 June 2012 - 03:21 PM

View Postguyfromri, 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

View PostNeku, 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......"
Was This Post Helpful? 0
  • +
  • -

#5 BobRodes  Icon User is offline

  • Your Friendly Local Curmudgeon
  • member icon

Reputation: 547
  • View blog
  • Posts: 2,904
  • Joined: 19-May 09

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."
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1