Hello,
So I have two tables that have the same structure and I am comparing them to see when records are added or removed from one to the other..
Here's a little snippet of the code:
'strSQL_deleted = "select * from tripslog left join trips on (trips.tripName = tripslog.tripName) WHERE trips.tripName is null;" 'fields in tripslog not in trips (deleted)
Set rst = invoicing.OpenRecordset(strSQL_deleted, dbOpenDynaset)
rst.MoveFirst
MsgBox rst.Fields(0)
The issues is i'm not sure how to reference the fields in the recordset that queries a join. The above rst.Fields(0) does return the primary key of the first entry, so I know there is data in the recordset.
However, I can't reference the field names (properly), ie rst!tripName returns empty and rst!trips.tripName / rst!tripslog.tripName returns empty.
Am I missing something here?
So I have two tables that have the same structure and I am comparing them to see when records are added or removed from one to the other..
Here's a little snippet of the code:
'strSQL_deleted = "select * from tripslog left join trips on (trips.tripName = tripslog.tripName) WHERE trips.tripName is null;" 'fields in tripslog not in trips (deleted)
Set rst = invoicing.OpenRecordset(strSQL_deleted, dbOpenDynaset)
rst.MoveFirst
MsgBox rst.Fields(0)
The issues is i'm not sure how to reference the fields in the recordset that queries a join. The above rst.Fields(0) does return the primary key of the first entry, so I know there is data in the recordset.
However, I can't reference the field names (properly), ie rst!tripName returns empty and rst!trips.tripName / rst!tripslog.tripName returns empty.
Am I missing something here?