ACC97 - Correct Delimiting Character Reference? 
Author Message
 ACC97 - Correct Delimiting Character Reference?

This is probably simple ( very much like myself!):

I have a Text File (Data.lst) which is delimited by an exclamation mark (the
wonders of AS400 will never cease to amaze me!)

I am trying to transfer/import the file data, into ACC97.  My best guess has
been:

 DoCmd.TransferText acImportDelim, "Import", "Data", "Data.lst", False

...Where "Import" is a Macro Name which call this Function.
...Where "Data" is the name of the Table which has predefined Fields,
reflecting the text files !-delimited Fields.

ACC97 does not appear to want to import the file, using ! as a delimiting
character.  Does anyone know if I need to set this up somewhere?

TIA



Fri, 02 Dec 2005 21:37:48 GMT  
 ACC97 - Correct Delimiting Character Reference?

Quote:

>This is probably simple ( very much like myself!):

>I have a Text File (Data.lst) which is delimited by an exclamation mark (the
>wonders of AS400 will never cease to amaze me!)

>I am trying to transfer/import the file data, into ACC97.  My best guess has
>been:

> DoCmd.TransferText acImportDelim, "Import", "Data", "Data.lst", False

>...Where "Import" is a Macro Name which call this Function.
>...Where "Data" is the name of the Table which has predefined Fields,
>reflecting the text files !-delimited Fields.

>ACC97 does not appear to want to import the file, using ! as a delimiting
>character.  Does anyone know if I need to set this up somewhere?

You have to specify the delimiter in the import
specification.  You say that IMPORT is a Macro Name, but it
should be a Specification Name.

You can create a specification by using the File - Get
External Data - Import menu item and working your through
the import wizard's dialog (use the Advanced option to set
the delimiter) and saving all the details in a
specification.

--
Marsh
MVP [MS Access]



Fri, 02 Dec 2005 22:49:48 GMT  
 ACC97 - Correct Delimiting Character Reference?
Doh!  Now I see...

Thank you very much!


Quote:

> >This is probably simple ( very much like myself!):

> >I have a Text File (Data.lst) which is delimited by an exclamation mark
(the
> >wonders of AS400 will never cease to amaze me!)

> >I am trying to transfer/import the file data, into ACC97.  My best guess
has
> >been:

> > DoCmd.TransferText acImportDelim, "Import", "Data", "Data.lst", False

> >...Where "Import" is a Macro Name which call this Function.
> >...Where "Data" is the name of the Table which has predefined Fields,
> >reflecting the text files !-delimited Fields.

> >ACC97 does not appear to want to import the file, using ! as a delimiting
> >character.  Does anyone know if I need to set this up somewhere?

> You have to specify the delimiter in the import
> specification.  You say that IMPORT is a Macro Name, but it
> should be a Specification Name.

> You can create a specification by using the File - Get
> External Data - Import menu item and working your through
> the import wizard's dialog (use the Advanced option to set
> the delimiter) and saving all the details in a
> specification.

> --
> Marsh
> MVP [MS Access]



Fri, 02 Dec 2005 23:00:17 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. EXPORT DELIMITED W/ FORIEGN CHARACTERS

2. ACC97 Outlook VBA reference material

3. ACC97: Reference a Control on a Form by a Variable

4. Acc97: Referencing Field using Variabel

5. Acc97: Problem with References

6. ACC97: Remove method for Reference Object

7. ASCII characters, why aren't they correct??

8. Dirk G.- Still can't get references correct

9. What is the correct Reference to DAO?

10. When reference count = 0, ActiveX object destroys, correct?

11. Correct way to reference an object in a frame

12. How to count the Reference Characters ?

 

 
Powered by phpBB® Forum Software