Hope that helps
Crying Wolf
In article <7t3ets$8mg$1...@bgtnsc03.worldnet.att.net>,
--
He who learns but does not think is lost, he who thinks but does not lea
Sent via Deja.com http://www.deja.com/
Before you buy.
To build text import specs:
- File, Get External Data, Import
- pick a text file
- click on Import (the wizard will come up)
- click on Advanced
Now you can build your spec and save it to a name you can use in
your VBA. You can use the same spec for any text file name (ie:
not just the one you picked above).
In Advanced you'll see a Specs button which will show you
all of your named specs. To do an export it's the same but you
use File, Save As/Export.
It's the only way I know of to get in there. I'm sure someone else
may have an easier way.
Deb Mallett
On Fri, 1 Oct 1999 18:14:21 -0500, "Jay Ainsworth"
MSysIMEXColumns has several records per Import spec, one for each imported
field. The two tables are linked by the specID field.
Once you have looked at what the import wizard does, you can open these
tables to see what the wizard did, and possibly trim the spec by hand.
To see the system table, you have to open the tools/options menu, and in a
tab that might be named "Display" (it is called "Affichage" in french) you
check "System Objects"
HTH,
Vincent
Deb Mallett a écrit dans le message <37f57f68...@news1.sympatico.ca>...
>Hi Jay,
>
<SNIP> >It's the only way I know of to get in there. I'm sure someone else
SELECT MSysIMEXSpecs.SpecName AS Name, IIf([MSysIMEXSpecs]![SpecType]=0,"Ver
2.0",IIf([MSysIMEXSpecs]![SpecType]=1,"Delimited","Fixed")) AS Type,
IIf([MSysIMEXSpecs]![FileType]=0,"ANSI","DOS") AS Origin,
IIf([MSysIMEXSpecs]![FieldSeparator]="
","{Tab}",[MSysIMEXSpecs]![FieldSeparator]) AS Delimiter,
MSysIMEXSpecs.TextDelim AS [Text Del], Count(MSysIMEXColumns.FieldName) AS
Fields, IIf([MSysIMEXSpecs]![StartRow]=1,"Yes","No") AS Names
FROM MSysIMEXColumns INNER JOIN MSysIMEXSpecs ON MSysIMEXColumns.SpecID =
MSysIMEXSpecs.SpecID
GROUP BY MSysIMEXSpecs.SpecName, IIf([MSysIMEXSpecs]![SpecType]=0,"Ver
2.0",IIf([MSysIMEXSpecs]![SpecType]=1,"Delimited","Fixed")),
IIf([MSysIMEXSpecs]![FileType]=0,"ANSI","DOS"),
IIf([MSysIMEXSpecs]![FieldSeparator]="
","{Tab}",[MSysIMEXSpecs]![FieldSeparator]), MSysIMEXSpecs.TextDelim,
IIf([MSysIMEXSpecs]![StartRow]=1,"Yes","No")
ORDER BY MSysIMEXSpecs.SpecName;
Just copy the SQL text, and paste into a new query, save and view.
I hope you find this of some use as it took me a whole day to do.
Jay Ainsworth <Jay_Ai...@worldnet.att.net> wrote in message
news:7t3ets$8mg$1...@bgtnsc03.worldnet.att.net...
Deb Mallett
e.g.
select * from msysimexcolumns
and
select * from msysimexspecs
(you don't need to make the tables visible for this to work either).
but as Vincent says, "playing with fire ..."
vincent.quesnoit <vincent....@wanadoo.fr> wrote in message
news:7t4kao$5og$1...@wanadoo.fr...
All of this is beyond my expertise, so any help in figuring out why this
error is occurring (I believe that the specification name may be
pointing to an old 2.0 db table that has since been archived, but I
don't know) and also how to correct this error is greatly appreciated!
TIA,
Heather
In article <7t3ets$8mg$1...@bgtnsc03.worldnet.att.net>,
"Jay Ainsworth" <Jay_Ai...@worldnet.att.net> wrote:
> I'm trying to transfer fixed text to an Access table but it keeps
referring
> to a specification file . I think I'm beginning to see what one is but
how
> do you create it and how do you save it so that it can be used in a
VBA
> command line?
>
>
The ISAM problem has been fixed and that seemed to take care of the
transfertext error, but I would still like to know how to modify a spec
name.
Thanks,
H
The only way I know is to go through the Import process, select a text file
then somwhere there is an Advanced or Options button, which will allow you
to load and modify an import specification.
Gregory Scott
Lion Software
Dunedin, New Zealand
Making Computers Friendly