G
Gsurfdude
Hello,
I have a form that is set to Continuous and in the Form_Open event I have
the code which "binds it"
Set cn = CurrentProject.AccessConnection
Set rs = New ADODB.Recordset
With rs
Set .ActiveConnection = cn
.Source = "SELECT * " & _
"FROM FIELD_COLLECT_ALL WHERE
FIELD_COLLECT_ALL.Status_user_id='Test';"
.LockType = adLockOptimistic
.CursorType = adOpenKeyset
.Open
End With
Set Me.Recordset = rs
me.text0 = rs!County
Set rs = Nothing
Set cn = Nothing
I have text boxes that are not bound to a field. The query above returns 100
rows but in the text box it's only the first record 100 times. How do I get
each individual record to display in the text box in the continuous form?
I tried this
Do While Not RS.EOF
me.Text0 = RS!County
rs.move next
loop
It did not work correctly.
I have a form that is set to Continuous and in the Form_Open event I have
the code which "binds it"
Set cn = CurrentProject.AccessConnection
Set rs = New ADODB.Recordset
With rs
Set .ActiveConnection = cn
.Source = "SELECT * " & _
"FROM FIELD_COLLECT_ALL WHERE
FIELD_COLLECT_ALL.Status_user_id='Test';"
.LockType = adLockOptimistic
.CursorType = adOpenKeyset
.Open
End With
Set Me.Recordset = rs
me.text0 = rs!County
Set rs = Nothing
Set cn = Nothing
I have text boxes that are not bound to a field. The query above returns 100
rows but in the text box it's only the first record 100 times. How do I get
each individual record to display in the text box in the continuous form?
I tried this
Do While Not RS.EOF
me.Text0 = RS!County
rs.move next
loop
It did not work correctly.