Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Checking if a table exists
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 07 January 2005 :  04:09:58  Show Profile  Visit D3mon's Homepage
you'll probably need to add in the SA (or user with administrator priv's) into the query somehow... I'm a bit lost there...


Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod
"In war, the victorious strategist only seeks battle after the victory has been won"
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 07 January 2005 :  15:09:17  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
I changed the code to use the sysobjects table and it worked just fine

Now to see if I can do this with access somehow

Through googling, I found this topic... however it didnt seem to answer my question directly, I think I can use it to do what I want with Access.

The line really in question is

If DBName = dbs2020.TableDefs(Count).Name Then


DBName being the table name being checked for...
dbs2020.TableDefs(Count).Name being the table name in the database.

The part I need to know is... is dbs2020 the connection object? IE my_Conn.TableDefs(Count).Name would be the code I would use *if* using snitz connection (example only).

Anybody have experience with this?

-Stim

Edited by - Da_Stimulator on 07 January 2005 17:20:12
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.22 seconds. Powered By: Snitz Forums 2000 Version 3.4.07