Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15589

join select question

$
0
0
Hello!

Is there a way to reference or point to a field of a joined table of a select statement? Typically i can us this code below on a simple select i can reference the fields like this...

mystr = "SELECT data1, data2 FROM table"
recset.Open mystr, MYCON, adOpenForwardOnly
If recset.EOF Then GoTo TheEnd
recset.MoveFirst
while recset.EOF = false
mydata = recset.fields(0).value <---- like this ***
end

With a join select, is there a way to reference "data3" below like I did above?

mystr = "SELECT data1,data2 FROM table1 INNER JOIN table2 ON data3 = data1"

Viewing all articles
Browse latest Browse all 15589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>