Hi Guys
I am writng code in excel VbA that will fetch data from Access table.
04/03/2015 means 4th March 2015 so if I write the sql query as below then it doesn't pull anything from access table.
Please suggest me what shall I do?
I am writng code in excel VbA that will fetch data from Access table.
04/03/2015 means 4th March 2015 so if I write the sql query as below then it doesn't pull anything from access table.
Code:
strsql = "SELECT DISTINCT printpoolno FROM tblmaster where username='" & Application.UserName & "' AND Date1=#" & Format("04/03/2015", "mm/dd/yyyy") & "#"
MsgBox strsql