Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2002

    Unanswered: AddItem Method in Access 2000

    Hi i'm having trouble with opeing a database i was given. When i open the database up in Access 2000, it opend up with an Complie Error messgae box.
    It says "Method or data Memeber not found".

    This happens under the line L_FILE.AddItem .FoundFiles(I). The word AddItem is highlighted with the complie error message box.

    Can you please help me out, i'm not sure what version the database was created in.

    Below is the code

    With Application.FileSearch
    .LookIn = "\\Edi\c\EXTRACT5"

    '.LookIn = "c:\"
    '.Filename = "*.MKI"
    .Filename = "*.MKO"
    End With

    With Application.FileSearch
    If .Execute() > 0 Then
    'MsgBox "THERE WERE " & .FoundFiles.Count & "FILES"

    For I = 1 To .FoundFiles.Count
    L_FILE.AddItem .FoundFiles(I)
    Next I
    'MsgBox "No files found or network error"
    End If
    End With


  2. #2
    Join Date
    Nov 2004
    out on a limb
    Provided Answers: 59
    first off i'd check the syntax
    is it really
    "L_FILE.AddItem .FoundFiles(I)"
    or should it be
    ie delete any leading spaces in front of the "." qualifier

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts