Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB Databases
Pro VB Databases Advanced-level VB coding questions specific to using VB with databases. Beginning-level questions or issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 6th, 2005, 11:38 AM
Registered User
Join Date: Jan 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem listing database tables


My code list all database tables. I have many clients with the code working OK. I´m using the ADOX.Catalog () and a code sample is below:

Dim conn As ADODB.Connection
Dim tbls As ADOX.Catalog
Dim tbl As ADOX.Table

    Set conn = New ADODB.Connection

        conn.Provider = "Microsoft.Jet.OLEDB.4.0"
        conn.Properties("Jet OLEDB:Database Password") = "password"
        conn.Open "Data Source = " & database_path

        Set tbls = New ADOX.Catalog
        Set tbls.ActiveConnection = conn

        For Each tbl In tbls.Tables

      If tbl.Name = "" then
        Debug.print "Nothing"
        Debug.print tbl.Name
          End if


Some days ago, some clients (precisely 2) presented a problem: none table is list.

I have been looking for a solution to this problem for about two weeks, and I haven´t found nothing yet.

Does anybody knows anything about this problem?

Thanks in advance for any help,


Similar Threads
Thread Thread Starter Forum Replies Last Post
Listing 8-10 and Listing 8-16. Asp.Net BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 1 February 6th, 2008 01:11 PM
Listing results from joined tables henry-horse Classic ASP Basics 5 March 9th, 2007 07:08 AM
Listing and limiting items from a database RPG SEARCH ASP.NET 1.0 and 1.1 Basics 11 August 3rd, 2004 04:37 PM
Filenames and directories listing into database. wenzation VB.NET 2002/2003 Basics 1 November 14th, 2003 09:34 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.