AtomCom2001
Member
- Joined
- Aug 2, 2007
- Messages
- 6
- Programming Experience
- 10+
Hi there people,
I know you must get these question all of the time, but I have to ask anyways.
I have a SQL select statement which gathers data from an ACCESS databases. It select the data via a date range from one of the fields.
if the date I am selecting on is like the 27/05/2007 it all works fine, problem is when the date is something like 02/06/2007 it fails...
Any ideas ???
I know you must get these question all of the time, but I have to ask anyways.
I have a SQL select statement which gathers data from an ACCESS databases. It select the data via a date range from one of the fields.
VB.NET:
[QUOTE]OleCmd.CommandText = "select * from deliveries where daily_report >= #" + Format(MinDate, "dd/MM/yyyy") + "# and daily_report <= #" + Format(MaxDate, "dd/MM/yyyy") + "#"[/QUOTE]
if the date I am selecting on is like the 27/05/2007 it all works fine, problem is when the date is something like 02/06/2007 it fails...
Any ideas ???