I have an Access Database, that Im binding to a datagrid in a Visual Basic Program. The Task_Date is MM/DD/CCYY. I want to select records based on if the task date matches the current date . Here is my Select Statement. Im not getting any hits, even though I have records that match todays date. I know there are rules about apostrophes in the Select statement, but Im not sure what the format is for dates. Can someone give me the correct format and/or point me to somewhere that has it documented?
Thanks, Donna
DataAdapter.SelectCommand.CommandText = _
"SELECT Task_Date, Task_Description FROM TasksTable " & _
"WHERE Task_Date = " & Today & ""
Thanks, Donna
DataAdapter.SelectCommand.CommandText = _
"SELECT Task_Date, Task_Description FROM TasksTable " & _
"WHERE Task_Date = " & Today & ""