Hi all,
I use the following string to get data from an access database within excel.
From the above sql string i want to change "date()" to reflect the date specified within an excel cell.
The cell is located at: worksheet "overall performers" cell K5 and is formatted as dd/mm/yyyy
How would the sql string look to achieve this?
Thanks
I use the following string to get data from an access database within excel.
Code:
Set RS = Db.OpenRecordset("Select tblCheck.lTableID, tblCheck.sStaffNumber, tblError.sStaffNumber FROM tblCheck LEFT OUTER JOIN tblError ON tblCheck.lTableID = tblError.lCheckID WHERE dteCheckCompletedDate BETWEEN date() AND date()-30")
The cell is located at: worksheet "overall performers" cell K5 and is formatted as dd/mm/yyyy
How would the sql string look to achieve this?
Thanks
Comment