E
esusda
Guest
I've looked through all of the Date posts I can find, but still haven't worked out this relatively simple problem, so here goes:
I'm currently just trying to do a simple SELECT retrieval using a date entered into a text box (format set to General Date with input mask 00/00/0000
. This information is then passed into the SELECT statement as follows:
strSQL = "SELECT DISTINCTROW PROJECT_ID FROM GT_ACTUALS WHERE CAL_DATE = " & txtStartDate.value & ";"
This returns 'No Current Record' despite there being ones in there. It's obviously to do with the whole date format side, and the way Access stores dates, since if I amend the above to:
strSQL = "SELECT DISTINCTROW PROJECT_ID FROM GT_ACTUALS WHERE CAL_DATE = 01/06/2001;"
..it still doesn't work.
I'd very much appreciate a pointer on how to get this working - it's frustratingly simple no doubt!
Thanks
~esusda~
I'm currently just trying to do a simple SELECT retrieval using a date entered into a text box (format set to General Date with input mask 00/00/0000
strSQL = "SELECT DISTINCTROW PROJECT_ID FROM GT_ACTUALS WHERE CAL_DATE = " & txtStartDate.value & ";"
This returns 'No Current Record' despite there being ones in there. It's obviously to do with the whole date format side, and the way Access stores dates, since if I amend the above to:
strSQL = "SELECT DISTINCTROW PROJECT_ID FROM GT_ACTUALS WHERE CAL_DATE = 01/06/2001;"
..it still doesn't work.
I'd very much appreciate a pointer on how to get this working - it's frustratingly simple no doubt!
Thanks
~esusda~