Hi,
OK, what am I doing wrong? I am getting the error "3265 - Item cannot be found in the collection corresponding to the requested name or ordinal." The Find method seems to work, because the EOF is false when I get the error. I have checked the names and data types, but I can't see anything wrong.
rstModels.MoveFirst
rstModels.Find "ModelNumber = '" & cmbModels.Text & "'"
If Not rstModels.EOF Then
OpDriveType(rstModels!DeviceTypeID) = vbChecked
If rstModels!Profile = "Slim" Then
chkSlim.Value = vbChecked
Else
chkSlim.Value = vbUnchecked
End If
End If
DeviceTypeID corresponds to the OpDriveType option button array index value that was loaded earlier.
Thanks,
Elena
OK, what am I doing wrong? I am getting the error "3265 - Item cannot be found in the collection corresponding to the requested name or ordinal." The Find method seems to work, because the EOF is false when I get the error. I have checked the names and data types, but I can't see anything wrong.
rstModels.MoveFirst
rstModels.Find "ModelNumber = '" & cmbModels.Text & "'"
If Not rstModels.EOF Then
OpDriveType(rstModels!DeviceTypeID) = vbChecked
If rstModels!Profile = "Slim" Then
chkSlim.Value = vbChecked
Else
chkSlim.Value = vbUnchecked
End If
End If
DeviceTypeID corresponds to the OpDriveType option button array index value that was loaded earlier.
Thanks,
Elena