Hi everyone. I'm running into something here that hasn't seem to happen before. I'm using a combo box called cboFind to let the user select which record he/she wants to work with. Here is the code.
"Private Sub cboFind_AfterUpdate()
Dim R As Recordset
Set R = Me.RecordsetClone
** R.FindFirst "[RFQNumber] = '" & Me![cboFind] & "'"
Me.Bookmark = R.Bookmark
Me![cboFind] = Null
End Sub"
The line with the ** is where Access takes me when I select debug. The error is as follows:
"Object is invalid or no longer set."
Does anyone know what causes this. It seems to work fine once or twice but then errors out. The RFQNumbers field is a text field.
Thanks in Advance,
Jason
"Private Sub cboFind_AfterUpdate()
Dim R As Recordset
Set R = Me.RecordsetClone
** R.FindFirst "[RFQNumber] = '" & Me![cboFind] & "'"
Me.Bookmark = R.Bookmark
Me![cboFind] = Null
End Sub"
The line with the ** is where Access takes me when I select debug. The error is as follows:
"Object is invalid or no longer set."
Does anyone know what causes this. It seems to work fine once or twice but then errors out. The RFQNumbers field is a text field.
Thanks in Advance,
Jason