Its just not working for me. Here's the full code I have so far.
When I run it as it is here, It first says, this item could not find the field "Textbox0".
I tried renaming the box to Textbox0 to see what happens, but then it just's give the error "item not found in this collection"
Both times debugging comes down to this line.
Code:
rst.Fields("Date of Test") = Me.Controls("Textbox" & i)
Code:
Private Sub Command193_Click()
Dim db As DAO.Database
Dim rst As DAO.Recordset
Dim intNo As Long
Set db = CurrentDb
Set rst = db.OpenRecordset("Radio Testing")
Do
For i = 0 To 158 Step 2
rst.AddNew
rst.Fields("Date of Test") = Me.Controls("Textbox" & i)
rst.Fields("Facility") = Me.Controls("Label" & i)
rst.Update
rst.NextRecordset
Next
Loop
End Sub
what am i doing wrong?