B
Bill
I'm trying to set the values of a checkbox on a subform
with the code below. I get a "Item not found in this
collection" error and it highlights the ".[Auto_Restock]
= -1" line (6th from bottom). As if that control isn't
part of the recordset. Any ideas?
Dim rst As Variant
Forms!TT2!OrderDetailSubform.SetFocus
Set rst = Me.RecordsetClone
If rst.RecordCount > 0 Then
rst.MoveLast
rst.MoveFirst
With rst
Do While Not .EOF
.Edit
.[Auto_Restock] = -1
.MoveNext
Loop
Set rst = Nothing
.Close
End With
with the code below. I get a "Item not found in this
collection" error and it highlights the ".[Auto_Restock]
= -1" line (6th from bottom). As if that control isn't
part of the recordset. Any ideas?
Dim rst As Variant
Forms!TT2!OrderDetailSubform.SetFocus
Set rst = Me.RecordsetClone
If rst.RecordCount > 0 Then
rst.MoveLast
rst.MoveFirst
With rst
Do While Not .EOF
.Edit
.[Auto_Restock] = -1
.MoveNext
Loop
Set rst = Nothing
.Close
End With