Hello All,
I have Always found what i needed on the net but now i am stuck .(this is my first question ever lol )
I will do my best to explain my problem .
I have 2 SQL databases ( lets say TAB1, TAB2 ) and i query each database with datatable ( DTB1 , DTB2 )
Both datatables have multiple columns but 1 column is holding the same data (Productnumber )
DTB1 holds Productnumber and Status = 3 ( queried from TAB1 where there are also Status 1 and 2's)
DTB2 holds Productnumber and Location ( queried from TAB2 )
Now i need to query DTB2 with DTB1 .
If a productnumber of DTB2 contains a productnumber of DTB1 result must be the productnumber .
fffff i hope it makes sense .
Would love a peace of code to help me as i dont now where to begin .
i should be able to adjust it to my needs :redface:
I have Always found what i needed on the net but now i am stuck .(this is my first question ever lol )
I will do my best to explain my problem .
I have 2 SQL databases ( lets say TAB1, TAB2 ) and i query each database with datatable ( DTB1 , DTB2 )
Both datatables have multiple columns but 1 column is holding the same data (Productnumber )
DTB1 holds Productnumber and Status = 3 ( queried from TAB1 where there are also Status 1 and 2's)
DTB2 holds Productnumber and Location ( queried from TAB2 )
Now i need to query DTB2 with DTB1 .
If a productnumber of DTB2 contains a productnumber of DTB1 result must be the productnumber .
fffff i hope it makes sense .
Would love a peace of code to help me as i dont now where to begin .
i should be able to adjust it to my needs :redface: