I believe I fixed the problem...
The column count was set at seven and not 21. I had added the other fields later. The previous database owner used Dlookup for these fields. That fixes the combobox returning "Null" for columns 8 to 21.
I also removed the rest of the code in the cbobox AfterUpdate event that was associated with record look up used when the cbobox was unbound.
Now the Afterupdate event looks like this:
Code:
Private Sub cboPrintNo_AfterUpdate()
'Save this info
Me.EngDataID = Me!cboPrintNo.Column(9)
Me.PENETRANT = Me!cboPrintNo.Column(13)
Me.[HEAT TREAT] = Me!cboPrintNo.Column(20)
Me.Annealingfld = Me!cboPrintNo.Column(19)
Me.[PASSIVATION] = Me!cboPrintNo.Column(16)
Me.ANODIZE = Me!cboPrintNo.Column(17)
Me.[CAD PLATING] = Me!cboPrintNo.Column(15)
Me.[ELECTROPOLISH] = Me!cboPrintNo.Column(18)
Me.[MAG PARTICLE] = Me!cboPrintNo.Column(14)
Me.[OTHER] = Me!cboPrintNo.Column(21)
If Nz(Me!cboPrintNo.Column(4), "") = "" Then
Me.[CLASS] = "N/A"
Else
Me.[CLASS] = Me!cboPrintNo.Column(4)
End If
If Nz(Me!cboPrintNo.Column(5), "") = "" Then
Me.[CLASS 2] = "N/A"
Else
Me.[CLASS 2] = Me!cboPrintNo.Column(5)
End If
Me.[BLASTING] = Me!cboPrintNo.Column(12)
Me.[MATERIAL] = Me!cboPrintNo.Column(11)
End Sub
Everything appears to be working. Thank you June and Linq! I do appreciate the help.