Using Microsoft Access to Create Paradox tables

farminsure
farminsure used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Normally indexes should be created automatically. Make a copy of all files and delete index files. Start program and check results.

Author

Commented:
Sorry that didn't work, it just came back saying it was missing the index file.
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Geert GOracle dba
Top Expert 2009

Commented:
can you see the data in the access database ?
Top Expert 2014

Commented:
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.
Geert GOracle dba
Top Expert 2009

Commented:
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.
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.

Author

Commented:
Closing because problem doesn't seem to be related to original question.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial