ristmo2001,
How can it be "not working", its the most effective way of finding what tables truly exist - if the one you are looking for isnt in the list, your pretty safe to assume it doesn't exist or you've got the wrong database.
I'm now a little unsure exactly how you want to check for a table with an if statement if you don't connect and check what tables exist in the first place. ______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.