How can I extract the table name from a field in an open ADO recordset?
I can use the .source
property to return the select statement, but if I want to know which table a field is associated with, how would I do that?
i.e. if .source
returns a something like SELECT Foo, Boo, Shoo FROM table1, table2
how could I query the recordset to see which table Boo is coming from?
My data source is a SQL Server 2005 database and I'm using VBA 7.0/VBA 6.0 (runs in both)