Thanks to Jeff and Brendan. I can tell you are trying to help but I think the
truth is that I'm not communicating well enough what I want to do. As a
consequence, you are not responding to the question I'm trying to ask.
By the by, the 255 columns thing is exactly the same in Dbase. I circumvent
this by breaking the data into two or more tables.
Here's WHY I'm asking the question - Borland no longer supports Dbase as a
product and, with operating system changes etc., it's only a matter of time
before I'll be unable to run Dbase on a PC (unless I keep a legacy system
just for the purpose). That means I MUST think about migrating to a different
piece of database software. (My first thought was just to use Excel but its
data import facilities are primitve, requiring maximum manual manipulation
and mouse clicking). It also means that, yes, I can continue to use Dbase in
the short term but not in the longer term.
Here's WHAT I need to achieve. I need to get the data from surveys - over
which I have no editorial or technical control - into tables. The data
arrives in text files with a data map, as I've said.
Here's what I DO when I have survey data to load. The data map (spreadsheet)
lists the variable names, column number in the record, and column width. I
rapidly convert this (with a few simple Excel formulae) to a data table
structure(s), treating every field as text. Each structure is saved from
Excel as a Dbase table. I then use Dbase's CREATE USING command to create a
new table from the structure table. Finally, I populate the new table with
Dbase's APPEND FROM command.
Here is my criterion for a satisfactory solution. I need to get from raw
data to populated data tables in the shortest time and with the least
possible effort, given that every survey is unique in its structure. As I've
said, this normally takes me less than half an hour with Dbase. I have to do
very little typing and most of the mouse operations involve holding the left
button down and using the scroll wheel.
My suspicion is that Access's data import facilties are just as primitive as
those of Excel and that it's facilities for table definition/construction are
equally primitive, albeit that they are wrapped up in fancy clothes. That, at
least, is my perception based on my attempts so far to use Access to do this
seemingly simple task.
I don't doubt that I COULD use VBA or, if I had 2003 stuff, .NET programming
to do the job - I can certainly write the programs - but two things mitigate
against this. First, every situation I have to deal with is uniquely
structured and would have to be rewritten each time. Second, everything I've
ever done with VBA and .NET has been like pulling teeth once you stray from
the fine line laid down in the help files. The simple truth is that I would
rather not go this route unless I have to.
I don't know whether this is any clearer. Or is it that I just need to read
your answers so far as "No, there is no easy way to do this simple task"?
Regards,