Everything works except the values do not appear on the form. The msgbox shows what it should. The values just don't show up on the form.
I have no clue about subforms. I would have thought the form was already bound to the table.
Code:
Option Compare Database
Dim strField As String
Private Sub cmbFirst_LostFocus()
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("SELECT * FROM tblToDoByID WHERE LABID ='" & [cmbFirst].[Column](0) & "';")
For intA = 7 To 33
strField = "Field" & intA
strField = Nz(rst.Fields("Field" & intA).Value, "")
MsgBox strField
If strField = "" Then
intA = 33
End If
Next intA
Set rst = Nothing
Set dbs = Nothing
End Sub