Hi all,
I am having trouble with VB6 (running in windows7) talking to an Access database, and was hoping someone
could help me locate the error.
the database contains a "DateIn" field of type "Date" (short Date)
I am reading the table into a recordset called "rsDiv"
I am trying to read only records for the financial year, between [1 Jul (name the year)] to [30 Jun] the next year.
my code is as follows.....
I have tried using CDate(construct ed date), CStr(DateIn), even #constructed date#.
so far, the filter allows all records through.
any sugggestions, apart from "give it away" will be appreciated.
Many thanks
Phil
I am having trouble with VB6 (running in windows7) talking to an Access database, and was hoping someone
could help me locate the error.
the database contains a "DateIn" field of type "Date" (short Date)
I am reading the table into a recordset called "rsDiv"
I am trying to read only records for the financial year, between [1 Jul (name the year)] to [30 Jun] the next year.
my code is as follows.....
Code:
FY = InputBox("Financial Year starting:- Jul, ", "Enter Financial Year")
st = "DateIn > '30/06/" & CStr(FY) & "' and DateIn < '1/07/" & CStr(FY + 1) & "'"
rsDiv.Filter = st
so far, the filter allows all records through.
any sugggestions, apart from "give it away" will be appreciated.
Many thanks
Phil
Comment