Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB Databases
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 6th, 2005, 11:38 AM
Registered User
 
Join Date: Jan 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem listing database tables

Hi,

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"
          Else
        Debug.print tbl.Name
          End if

    Next

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,

Raphael

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 08:12 PM.


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