Results 1 to 2 of 2
  1. #1
    4 Star Lounger
    Join Date
    Feb 2002
    Posts
    537
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Delete but two tables (Access 2000)

    In my for deleting all tables except 1 i have wriiten the following:

    If Left(dbs.TableDefs(i).Name, 4) <> "MSys" And dbs.TableDefs(i).Name <> "KiaPrice" Or dbs.TableDefs(i).Name <> "affiliates" Then

    However i get an error saying that i have no permission.Where is my error ?

  2. #2
    Gold Lounger
    Join Date
    Jun 2001
    Location
    Crystal Beach, FL, Florida, USA
    Posts
    3,436
    Thanks
    1
    Thanked 34 Times in 34 Posts

    Re: Delete but two tables (Access 2000)

    Change: Or dbs.TableDefs(i).Name <> "affiliates"

    To: And dbs.TableDefs(i).Name <> "affiliates"
    Mark Liquorman
    See my website for Tips & Downloads and for my Liquorman Utilities.

Posting Permissions

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