Try to test for Nothing in VB.
If object is Nothing then...
--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva www.betav.com Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
Visit
www.hitchhikerguides.net to get more information on my latest book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
-----------------------------------------------------------------------------------------------------------------------
[quoted text, click to view] "Kevin Humphreys" <khumphreys@hotmail.com> wrote in message
news:ecbPv%23NNHHA.780@TK2MSFTNGP03.phx.gbl...
> To Whom It May Concern,
> Is it possible to check if a data table is created?
>
> E.G.
> If not exists(DataTable("Basket")) then
> Dim Table1 As DataTable
> Table1 = New DataTable("Basket")
> End
>
> If not exists(DataTable("Basket")) then
> 'Work with existing datatable.
> End
>
> Any help is appreciated.
> Kevin.
>