A
Arial
My SQL string is kind of wierd one.
In my application, I need to select things from an
unknown name table. But I know the table name before the
SQL command is executed.
For instance,
Dim varname as string = 'one of my variable. It's part of
the table name.
Dim t1 as String = varname+ "0000"
Dim cmdstr as string ="Select Name, Addr from t1 where
Name = ?"
cmdstr.parameters.add("Name", odbctype(char), 50)
I use a string concaticate method and got error.
"Cannot find table t1".
Can some one tell me how to do that ?
In my application, I need to select things from an
unknown name table. But I know the table name before the
SQL command is executed.
For instance,
Dim varname as string = 'one of my variable. It's part of
the table name.
Dim t1 as String = varname+ "0000"
Dim cmdstr as string ="Select Name, Addr from t1 where
Name = ?"
cmdstr.parameters.add("Name", odbctype(char), 50)
I use a string concaticate method and got error.
"Cannot find table t1".
Can some one tell me how to do that ?