Print specific values from dictionary with a specific key name
Siten0308 - Jun 20 2019 01:43 PM
How to make code run differently depending on the platform it is running on?
xarzu - Apr 05 2019 09:17 AM
How do I set a breakpoint in an attached process in visual studio
xarzu - Apr 04 2019 11:47 AM
Recent Blog Entries
Recent Status Updates
- Managed C++
- Visual Basic 4 / 5 / 6
- linked list
- hello world
Posted 30 July 2013 - 07:28 AM
First of all I thank this forum for teaching me many new things.
Here I came across a little problem. I developed a c++ builder application which uses ms-access (mdb format) DB file. It works pretty well in this system. but whenever I open it in another systems, it gives something error.
Here is the screenshot. Actually, it an application that prints Bill (reporting using fast report).
Even though, I copied the whole Folder in other system, It doesn't seem to work.
Btw, sorry if it has been posted in wrong section.
Edited by Roger, 30 July 2013 - 12:17 PM.
Posted 30 July 2013 - 08:32 AM
It seems that you did not adjust the location of the .mdb file in the new computer. Your application can not find it, and therefore raised that error. You need to do the adjustment in the connection string to make sure it points to valid .mdb file in valid location/path.
Next time, please refrain from posting a huge image file when we just need to know the error message.
(to answer the question in the title)
That depends on how do you connect to that MS-Access Database. When you are using ADO, your Delphi/C++ application will need MSDAC of proper version installed. Usually you just need the computer to have Internet Explorer installed (I forget the exact version, but I believe at least version 4). When you are using odbc, then you need to make sure proper odbc driver installed (again, in most cases MSDAC will already done this for you). Or you might use a custom library, like Unidac, which then you need to carefully read its manual.
Anyway, usually you do the adjustment in installation process. In your actual application either it immediately "dies", or check and then "protest" before dying.
Edited by Luthfi, 23 August 2013 - 09:01 AM.