Hi all,
I needed to build an excel macro that connects to a database with 2 tables. I can read and write to it. The thing I'm not able to do is to create a query that will take a name and check it in both tables and show the results in excel.
Both tables are the same in layout, only the name is different. They are linked with the same field (ClientCompanyName). there is the field called (SurName). When I want to do a search, I type the surname in a search field (excel cell), press the button and finds that info, but don't know how to do it with 2 tables.
Any clue how to do this?
this is the code that I use for search:
If it can be adjusted to have it from 2 tables (it could like From Data And Data2 or similar)![]()
Please Login or Register to view this content.
Greetings.
Bookmarks