Dim Db As ADODB.Connection Dim rs As ADODB.Recordset Set Db = New ADODB.Connection Db.ConnectionString = GetConnectString & AppPath & "schedule.mdb" Call Db.Open Set rs = New ADODB.Recordset Set rs = Db.Execute("select * from tbl_Schedule where StartDate = #1/1/2002#") While Not rs.EOF Call Me.Schedule1.ScheduleItems.Add("", #1/1/2002#, rs!StartTime, _ rs!Length, rs!Description, "") Call rs.MoveNext Wend
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)