Hi,
In Visual basic you can great a sub Like this, transfering object name as a parameter into sub, so code can be re used with all types of tables.
Sub SelectAnyTable(tbl as string, CWhere as string)
Dim Str as string
Str = "SELECT * FROM " & tbl & CWhere & ";"
....Run select statement to connected recordset
end Sub
QUESTION : How do you make TSQL re usable with different objects of the same type, ie Tables ??
Any examples or articles to help a learner