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"
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"