I'm not that familiar with the functions you are using, but right off the bat I notice that the name "Table" is unreferenced in the line with ValidateTableName. That's supposed to be a string denoting the name of the table in the given workspace. The name Table at this point in your script does not point to anything.
good luck,
Mike