I have an SQL query which I created using the wizard and then modified a bit. This query needs to pull data from two sheets in the same workbook. Below is my slightly modified code:
SELECT `'TA Submissions$'`.`TA Content`, `'TA Submissions$'`.`Subject of TA`, `'TA Submissions$'`.`Unit of TA`, `'TA Submissions$'`.`Title of TA`, `'TA Submissions$'`.`Any Notes for the Invigilator or student?`, `TAs$`.`Group Code`, `TAs$`.`TA Code`, `TAs$`.`Extra Time`, `TAs$`.Student, `TAs$`.Subject, `TAs$`.Teacher, `TAs$`.Day, `TAs$`.Start, `TAs$`.Finish, `TAs$`.Duration, `TAs$`.`TA Subject`
FROM `'TA Submissions$'` `'TA Submissions$'`, `TAs$` `TAs$`
WHERE `TAs$`.Teacher+` - `+`TAs$`.`TA Subject` = `'TA Submissions$'`.`Teacher Name & Class Group` AND ((`TAs$`.`Submitted?`='Yes')) AND ((`TAs$`.`Generated?`<>'Generated'))
I don't usually use SQL so could anyone point me in the right direction please! I've only found threads going from Access to Excel rather than Excel to Excel.
Many Thanks.