Re: ADO.NET Rowfilter - between 2 dates
- From: "Prester John" <presterjohn@xxxxxxxxxxx>
- Date: Thu, 30 Nov 2006 19:44:05 -0800
The following works fine for me:
mEmployeeAO.MainView.RowFilter = "EMP_Hiredate > #11/01/2006# AND
EMP_HireDate < #11/30/2006#"
As does:
Dim d1 As Date = #11/1/2006#
Dim d2 As Date = #11/30/2006#
mEmployeeAO.MainView.RowFilter = "EMP_Hiredate > #" & d1.Date.ToString &
"# AND EMP_HireDate < #" & d2.Date.ToString & "#"
HTH
<steffen.trommer@xxxxxxxxx> wrote in message
news:1164100695.233477.188990@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Dear VB experts,
how can i set a rowfilter to a Dataview that filters the data from a
startdate to a enddate?
I tried this, but whithout success:
Me.CurDataViewStatistik.RowFilter = "DATEFIELD >= #" &
Format(Me.dtpVon.Value, "yyyy\/MM\/dd") & "# AND DATEFIELD <= #" &
Format(Me.dtpBis.Value, "yyyy\/MM\/dd") & "#"
The execution shows no errors, but the rowcount is 0.
Database is Access 2003 with .NET 2.0.
Thank you
Steffen
.
- Follow-Ups:
- Re: ADO.NET Rowfilter - between 2 dates
- From: Thunder
- Re: ADO.NET Rowfilter - between 2 dates
- Prev by Date: Fastest String search
- Next by Date: Re: Best way to get a Junior Programmer up to speed
- Previous by thread: Fastest String search
- Next by thread: Re: ADO.NET Rowfilter - between 2 dates
- Index(es):
Relevant Pages
|