Hi,
I've build a form that enables a user to "create" a query by selecting and entering the data he wants to see.
My user can enter 2 dates (beginning and end) and my research query is supposed to return all the production data between this 2 dates.
I use this line of code.
strQuery = strQuery & " Production.Date >= #" & CDate(txtDateBegin) & "# AND production.Date <= #" & CDate(txtDateEnd) & "#"
the rest of the query is added else where in the code but it's functionnal since it works with all other features of my searh.
When I enter dates, The query returns nothing... whatever the dates I enter...
any Ideas?
Thanks
RickBerem
I've build a form that enables a user to "create" a query by selecting and entering the data he wants to see.
My user can enter 2 dates (beginning and end) and my research query is supposed to return all the production data between this 2 dates.
I use this line of code.
strQuery = strQuery & " Production.Date >= #" & CDate(txtDateBegin) & "# AND production.Date <= #" & CDate(txtDateEnd) & "#"
the rest of the query is added else where in the code but it's functionnal since it works with all other features of my searh.
When I enter dates, The query returns nothing... whatever the dates I enter...
any Ideas?
Thanks
RickBerem