Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.basic.visual.misc > #526

Re: Getting inside an .accdb file

From Jason Keats <jkeats@melbpcDeleteThis.org.au>
Newsgroups comp.lang.basic.visual.misc
Subject Re: Getting inside an .accdb file
References <VA.00003670.04d6f723@ukrm.net> <iq4bc794sehh1kir2pi384ilbm24jgcr4q@4ax.com> <VA.00003677.046046c6@ukrm.net> <s9bdc7lcikf52o1nnj6gq45bep3emoh36e@4ax.com>
Message-ID <clMxq.6136$NR2.3505@viwinnwfe01.internal.bigpond.com> (permalink)
Date 2011-11-19 22:23 +1100
Organization BigPond

Show all headers | View raw


Tony Toews wrote:
> On Fri, 18 Nov 2011 09:46:37 -0000, R C Nesbit<spam@ukrm.net>  wrote:
>
>> Yes, I know - I should have been more explicit.
>> I can open a connection to the database OK, but no clue as to what
>> tables and structure is in it, so I needed to query a system table to
>> find out what tables are in it.
>
> Ahh, then you want to go through the tabledefs collection using VBA
> code.  But in your other reply I see that a viewer is sufficient for
> your needs.

The following line is the solution to the problem:

Set rst = cnn.OpenSchema(adSchemaTables)

where cnn is your connection object, and rst is an ADODB.Recordset.

Back to comp.lang.basic.visual.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Getting inside an .accdb file R C Nesbit <spam@ukrm.net> - 2011-11-17 09:48 +0000
  Re: Getting inside an .accdb file H-Man <Spam@bites.fs> - 2011-11-17 14:37 -0700
    Re: Getting inside an .accdb file H-Man <Spam@bites.fs> - 2011-11-17 16:23 -0700
      Re: Getting inside an .accdb file R C Nesbit <spam@ukrm.net> - 2011-11-18 09:46 +0000
        Re: Getting inside an .accdb file Tony Toews <ttoews@telusplanet.net> - 2011-11-18 12:10 -0700
  Re: Getting inside an .accdb file Tony Toews <ttoews@telusplanet.net> - 2011-11-17 16:08 -0700
    Re: Getting inside an .accdb file R C Nesbit <spam@ukrm.net> - 2011-11-18 09:46 +0000
      Re: Getting inside an .accdb file Tony Toews <ttoews@telusplanet.net> - 2011-11-18 12:09 -0700
        Re: Getting inside an .accdb file R C Nesbit <spam@ukrm.net> - 2011-11-19 10:29 +0000
          Re: Getting inside an .accdb file Tony Toews <ttoews@telusplanet.net> - 2011-11-21 13:05 -0700
            Re: Getting inside an .accdb file R C Nesbit <spam@ukrm.net> - 2011-11-23 18:10 +0000
              Re: Getting inside an .accdb file ralph <nt_consulting64@yahoo.net> - 2011-11-23 15:10 -0600
              Re: Getting inside an .accdb file Tony Toews <ttoews@telusplanet.net> - 2011-11-24 17:12 -0700
        Re: Getting inside an .accdb file Jason Keats <jkeats@melbpcDeleteThis.org.au> - 2011-11-19 22:23 +1100
          Re: Getting inside an .accdb file R C Nesbit <spam@ukrm.net> - 2011-11-20 12:30 +0000

csiph-web