Hello everyone.
I have VB6 app connected to a MySQL 4.1 database.
I am using ADO and myODBC to connect to the database on a webhost, and successfully return data to my forms.
My problem is that I need an SQL string to call records where the date is equal to today.
The string I've used is like "SELECT * FROM tblCalls WHERE CallDate='" & Format(Date,"yy-mm-dd")'". When I populate my ADO control, with the SQL as its recordsource, I get all records back, i.e. it won't filter by today's date.
Can anyone tell me how I need to construct my SQL string to apply the filter I want?
Apologies if there's already a post about this, but I've tried to search this forum, and the MySQL forum with no luck.
Thanks in advance for your help.
I have VB6 app connected to a MySQL 4.1 database.
I am using ADO and myODBC to connect to the database on a webhost, and successfully return data to my forms.
My problem is that I need an SQL string to call records where the date is equal to today.
The string I've used is like "SELECT * FROM tblCalls WHERE CallDate='" & Format(Date,"yy-mm-dd")'". When I populate my ADO control, with the SQL as its recordsource, I get all records back, i.e. it won't filter by today's date.
Can anyone tell me how I need to construct my SQL string to apply the filter I want?
Apologies if there's already a post about this, but I've tried to search this forum, and the MySQL forum with no luck.
Thanks in advance for your help.