How do I select the actual variable if the recordset is JOINed from to tables?
Dim db As DAO.Database
Set db = CurrentDb
Dim rs As DAO.Recordset
Set rs = Currentdb.OpenRecordset("SELECT tableA.data, tableB.data “ & _
“FROM tabelA INNER JOIN tableB ON tableA.ID = tableB.xyz”)
Debug.Print (srs!tableA.data) ' does not work
Yes, data could be an element of tableA or B ... but how to specify?
THank you, Reinhard
Workaround like "as TabA_data" works but there must be a more elegant solution?