My objective is to check the TABLE in the MS Access
database whether it exists or not. If not, I will create
anre TABLE. Grateful if you could help!
I thought this should be quite easy but I could not find
any source on the Interent! Thanks in advance!

Re: Check if Table existsin the database by Han

Han
Wed Jul 16 02:33:12 CDT 2003

/on error resume next/ is one way.

on error resume next
connection.execute "create table table1 (c1, text)"
msgbox err.number

Always you should have a table. Or, openschema,

set r=connection.openSchema(20)
r.filter="table_name='table-name'"
msgbox r.bof

"tim" <timlee@hkem.com> wrote in message
news:095d01c34b67$2c1b57d0$a101280a@phx.gbl...
> My objective is to check the TABLE in the MS Access
> database whether it exists or not. If not, I will create
> anre TABLE. Grateful if you could help!
> I thought this should be quite easy but I could not find
> any source on the Interent! Thanks in advance!



Re: Check if Table existsin the database by Jörg

Jörg
Wed Jul 16 02:42:25 CDT 2003

Hi Tim,

you can use the ADOX.Catalog. There you can fild an list of any tables in a
Database. And an Append-Function to add one or two...

Jörg


"tim" <timlee@hkem.com> schrieb im Newsbeitrag
news:095d01c34b67$2c1b57d0$a101280a@phx.gbl...
> My objective is to check the TABLE in the MS Access
> database whether it exists or not. If not, I will create
> anre TABLE. Grateful if you could help!
> I thought this should be quite easy but I could not find
> any source on the Interent! Thanks in advance!