From your post it looks like the user is entering table names, you might want to consider using a combo or list box for them to select from to avoid errors caused by typo's... HTH