Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Using Microsoft Access to Create Paradox tables

Posted on 2012-12-27
8
393 Views
Last Modified: 2013-01-12
I've been given a bunch of spreadsheets to update about 10-12 tables used by a Delphi 2007 program.  I had imported these into Microsoft Access and then exported them in Paradox (7) format in hopes that I could just replace the tables being used by doing a copy file, but it seems that there is also a .PX file (indexes I'm assuming).

How does one get that rebuilt over the new data?  This app was originally created in Delphi 4 and then change to work under Delphi 2007 and will be phased out (hopefully in a couple of years) and it's one I've inherited so I'm not much of a Delphi programmer.  I've done so "c" coding so I can do minor maintenance but not a design from scratch.
0
Comment
Question by:farminsure
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 40

Expert Comment

by:als315
ID: 38726107
Normally indexes should be created automatically. Make a copy of all files and delete index files. Start program and check results.
0
 

Author Comment

by:farminsure
ID: 38727016
Sorry that didn't work, it just came back saying it was missing the index file.
0
 
LVL 40

Expert Comment

by:als315
ID: 38727700
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 37

Expert Comment

by:Geert Gruwez
ID: 38727943
can you see the data in the access database ?
0
 
LVL 45

Expert Comment

by:aikimark
ID: 38729216
The Paradox ODBC drivers in Access are old, so I'm not surprised this isn't working as expected.

One of the things you will want to do with your Delphi code (as part of the D4->D2007 migration) is to replace BDE usage with dbExpress as your data engine.  Since your data currently resides in Access, you might be able to use an ODBC driver to get to it.  You do have RDBMS alternatives to Access and some of them might result in an easier code conversion.
0
 
LVL 37

Expert Comment

by:Geert Gruwez
ID: 38734133
why 2 conversions ? why would you want to load in access first ?

and what with the delphi code in the forms ?
there is no mention of what has to happen with that.
0
 

Accepted Solution

by:
farminsure earned 0 total points
ID: 38751239
I had to conversions because Excel would not create a paradox table.  So I first took it to Access and then used Access to create the paradox table.  I have since then written a program to clear the table and then read a .cvs file and using sql in the program to insert records into the blank table.

I was thinking it was the table that was bad, but  I still get the EAccessViolation when I read a certian record in the table.   So I'm going to close the question and ask one that is more specifc to this error.
0
 

Author Closing Comment

by:farminsure
ID: 38769707
Closing because problem doesn't seem to be related to original question.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question