On 4 Aug 2005 06:01:36 -0700, "Roy" <pr********@yah oo.com> wrote:
Obviously I am doing something wrong here.I imported your
clsReadTextFil e.txt to the MyDocuments folder.I pasted the code
Application.Lo adFromText acModule,"clsRe adTextFile",
"clsReadTextFi le.txt"
,but it errors ,saying ,it cannot read the clsReadTextFile .txt .Can you
please detail the steps how to go about the whole thing,please.
The text file i need to use is EMSTestFeed.txt .
Where do i fit this in your code?How do i read your class from the VBA
module.
Well, step 1 is to get the class into your Access DB. If that can't
be done (and it only has to be done _once_), then nothing will help
you any further.
Hmmm.... _Where_ did you paste the "Application.Lo adFromText..."
part? You _cannot_ do it in the code module. It _must_ be done in
the Immediate window. Nowhere else will work, or do. Note: This part
is not something you have to _every time_, it's just a one time thing
to get the class module into your project. (Rather like creating a
Form. Generally, you only have to create it once.)
The name of the text file you are trying to read doesn't matter at
this point. We'll take care of that after you have the
clsReadTextFile class module in your database.
--
Drive C: Error. (A)bort (R)etry (S)mack The Darned Thing