J
jayjay21us via AccessMonster.com
I'm very new to dealing with DAO Recordset... I"m trying the following to
populate a form with unbound text fields... I have 10 unbound text boxes.. D0
thru D9. I want the result of the recordset to populate the unbound text
boxes. But I don't know how to do so..I search and googled, but I'm confused.
.. So I got this to work to at least it tells me I'm going in the right
direction... Any help would be appreciated....
Option Compare Database
Sub DisplayWeekly()
Dim rs As DAO.Recordset
Set rs = CurrentDb.OpenRecordset("SELECT DocketID, PLFirst, PLLast FROM
HearingSchedule", dbOpenDynaset)
Do While Not rs.EOF
Debug.Print rs![DOCKETID]; rs![PLFIRST]; rs![PLLAST]
rs.MoveNext
Loop
rs.Close
Set rs = Nothing
End Sub
I did the Debug.Print to see if it was returning what I want.. and it is... I
just can't get update the script to populate frmCalendar.
Thanks!
populate a form with unbound text fields... I have 10 unbound text boxes.. D0
thru D9. I want the result of the recordset to populate the unbound text
boxes. But I don't know how to do so..I search and googled, but I'm confused.
.. So I got this to work to at least it tells me I'm going in the right
direction... Any help would be appreciated....
Option Compare Database
Sub DisplayWeekly()
Dim rs As DAO.Recordset
Set rs = CurrentDb.OpenRecordset("SELECT DocketID, PLFirst, PLLast FROM
HearingSchedule", dbOpenDynaset)
Do While Not rs.EOF
Debug.Print rs![DOCKETID]; rs![PLFIRST]; rs![PLLAST]
rs.MoveNext
Loop
rs.Close
Set rs = Nothing
End Sub
I did the Debug.Print to see if it was returning what I want.. and it is... I
just can't get update the script to populate frmCalendar.
Thanks!