I have to append latest access record to an excel sheet with headers from access table where a column in excel sheet(LAN) matches column (LAN) in access table. This is my code so far:
qry = "Select (Select Call_Date from Tel_List Where t.LAN=Tel_List.LAN And Ctrl=(Select Max(Ctrl) From Tel_List Where t.LAN=Tel_List.LAN)) From [Excel 12.0;HDR=Yes;Database=C:\Boda Boda Banja Ltd\Modules\Prototypes\UG RFIN UI 1.0.xlsm].[TEL_List$]t Inner Join Tel_List on t.LAN=Tel_List.LAN Where Ctrl=(Select Max(Ctrl) From Tel_List Where t.LAN=Tel_List.LAN)"
The code returns values but is not appended against the relevant rows. Below is the screen shot after retrieving previous call date from access table.
Is there a way to append the data against the relevant rows?
