Results 1 to 3 of 3

Thread: Removing the MSys table names

  1. #1

    Thread Starter
    Lively Member chongo 2002's Avatar
    Join Date
    Apr 2000
    Posts
    106

    Question

    I am loading the names of the tables from a database into a listbox and using them to open recordsets. The only problem is that is adds all The Msys table names too. I was removing them using the .removeitem method but it is giving me errors now. does anyone have any ideas on how to remove the five msys table names?

  2. #2
    Lively Member
    Join Date
    Nov 2000
    Posts
    82
    The trick here is not to remove them, but to keep them from being added in the first place. Like so...


    Code:
    For iCtr1 = 0 To MY_DB.TableDefs.Count - 1
    
            If Left(MY_DB.TableDefs(iCtr1).Name, 4) <> "MSys" Then
                MyListBox.AddItem MY_DB.TableDefs(iCtr1).Name
            End If
    
        Next iCtr1

    [Edited by Jeff Carlin on 11-19-2000 at 11:42 AM]

  3. #3

    Thread Starter
    Lively Member chongo 2002's Avatar
    Join Date
    Apr 2000
    Posts
    106
    Thanks man works great!

Posting Permissions

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



Click Here to Expand Forum to Full Width