Group:  Microsoft Access ยป microsoft.public.access.modulesdaovba.ado
Thread: Use of an ASCII text file for updating mdb

Geek News

Use of an ASCII text file for updating mdb
"Matt" <mholland[ at ]fidm.com> 12/12/2008 8:11:08 PM
hi all,

brand new to this forum..! hoping someone can help me - I use an
application developed in MS Access that permits users to use an ASCII file
containing index info (SSNs) for specific records in the database in order
to perform some action on each of those records in the database. Can
someone tell me what this functionity is referred to within MS Access? As a
novice VBA developer, I am interested in duplicating this functionality in
my own programs but can't discover what it's name is w/in the help guide(s).
Thanks...!!


Re: Use of an ASCII text file for updating mdb
"Douglas J. Steele" <NOSPAM_djsteele[ at ]NOSPAM_gmail.com> 12/12/2008 10:09:11 PM
You can use the TransferText method to link to the text file, and you can
then treat that linked table the same as any other table other than the fact
that it won't be updatable.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"Matt" <mholland[ at ]fidm.com> wrote in message
news:%23mXVIXJXJHA.4280[ at ]TK2MSFTNGP02.phx.gbl...
[Quoted Text]
> hi all,
>
> brand new to this forum..! hoping someone can help me - I use an
> application developed in MS Access that permits users to use an ASCII file
> containing index info (SSNs) for specific records in the database in order
> to perform some action on each of those records in the database. Can
> someone tell me what this functionity is referred to within MS Access? As
> a novice VBA developer, I am interested in duplicating this functionality
> in my own programs but can't discover what it's name is w/in the help
> guide(s).
> Thanks...!!
>


Re: Use of an ASCII text file for updating mdb
JonWayn 12/16/2008 12:16:13 PM
How do you do that?

"Douglas J. Steele" wrote:

[Quoted Text]
> You can use the TransferText method to link to the text file, and you can
> then treat that linked table the same as any other table other than the fact
> that it won't be updatable.
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no private e-mails, please)
>
>
> "Matt" <mholland[ at ]fidm.com> wrote in message
> news:%23mXVIXJXJHA.4280[ at ]TK2MSFTNGP02.phx.gbl...
> > hi all,
> >
> > brand new to this forum..! hoping someone can help me - I use an
> > application developed in MS Access that permits users to use an ASCII file
> > containing index info (SSNs) for specific records in the database in order
> > to perform some action on each of those records in the database. Can
> > someone tell me what this functionity is referred to within MS Access? As
> > a novice VBA developer, I am interested in duplicating this functionality
> > in my own programs but can't discover what it's name is w/in the help
> > guide(s).
> > Thanks...!!
> >
>
>
>
Re: Use of an ASCII text file for updating mdb
"Douglas J. Steele" <NOSPAM_djsteele[ at ]NOSPAM_gmail.com> 12/16/2008 1:06:38 PM
Assuming that your text file only SSNs and that there's a field name as the
first row, you'd use something like:

DoCmd.TransferText acLinkDelim, , "MyTable", "C:\Folder\File.txt", True

You'd now have a "table" MyTable that points to the text file, and you can
use MyTable the same as any other table.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"JonWayn" <JonWayn[ at ]discussions.microsoft.com> wrote in message
news:4CB47D92-7B52-4605-B744-34AFFCBDF113[ at ]microsoft.com...
[Quoted Text]
> How do you do that?
>
> "Douglas J. Steele" wrote:
>
>> You can use the TransferText method to link to the text file, and you can
>> then treat that linked table the same as any other table other than the
>> fact
>> that it won't be updatable.
>>
>> --
>> Doug Steele, Microsoft Access MVP
>> http://I.Am/DougSteele
>> (no private e-mails, please)
>>
>>
>> "Matt" <mholland[ at ]fidm.com> wrote in message
>> news:%23mXVIXJXJHA.4280[ at ]TK2MSFTNGP02.phx.gbl...
>> > hi all,
>> >
>> > brand new to this forum..! hoping someone can help me - I use an
>> > application developed in MS Access that permits users to use an ASCII
>> > file
>> > containing index info (SSNs) for specific records in the database in
>> > order
>> > to perform some action on each of those records in the database. Can
>> > someone tell me what this functionity is referred to within MS Access?
>> > As
>> > a novice VBA developer, I am interested in duplicating this
>> > functionality
>> > in my own programs but can't discover what it's name is w/in the help
>> > guide(s).
>> > Thanks...!!
>> >
>>
>>
>>


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net