Tim Wilson said:
Thanks for the information. Do you know off hand if Access is
required to be installed (or some Access components) in order for
this function to be used. I am using .Net and the OLE DB data
provider to select data from an Access database. Would installing
MDAC and the Jet 4.0 (service pack 7) be enough to utilize this
function from code or do I need something more?
I'm not sure, but I think you can run this so long as Jet and VBA are
installed. I was able to run it from Visual Basic using DAO:
Dim db As DAO.Database
Dim rs As DAO.Recordset
Set db = DBEngine.OpenDatabase("C:\Documents and Settings\Dirk\My
Documents\Test.mdb")
Set rs = db.OpenRecordset( _
"SELECT * From tblEvents " & _
"WHERE TimeValue([WhenOccurred]) " & _
"Between #1:00PM# And #8:00PM#;")
Do Until rs.EOF
Debug.Print rs!ID, rs!WhenOccurred, rs!EventDesc
rs.MoveNext
Loop
rs.Close
Set rs = Nothing
db.Close
Set db = Nothing
I'm not familiar enough with ADO, much less ADO.Net, to test it as
quickly as no doubt you can. May I suggest you try it out and report
the results? Then we'll both know.
--
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)