|
-
Jun 13th, 1999, 12:13 PM
#1
Thread Starter
Member
Hello everyone,
How can I chech if the table is exist in a database? Just in case if someone delete my table inside a database.
-
Jun 13th, 1999, 03:02 PM
#2
Let's say you are looking for a table named MyTable.
Then you would use something like:
Dim db As Database
Dim tb As TableDef
Set db = Workspaces(0).OpenDatabase("C:\MyDB.mdb")
For each tb In db.TableDefs
If tb.Name = "MyTable" Then
'You found your table
Exit For
End If
Next
Best regards,
------------------
Serge
[email protected]
[email protected]
If you have any questions about AOL programming, e-mail me
-
Jun 15th, 1999, 08:37 PM
#3
New Member
In oracle you could try selecting for the table name against the TAB table.
Chip
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|