When running a form through a Switchboard I am getting an error when trying to execute the following code.
Private Sub lbxIPHOSTOWNER_AfterUpdate()
Const cQ = """"
With Me.RecordsetClone
.FindFirst "IP_Address = " & cQ & Me.lbxIPHOSTOWNER & cQ
Me.Bookmark = .Bookmark
Me.Refresh
End With
End Sub
The error that I get says the following:
"No current record. (Error 3021)
This error occurs after the unsuccessful application of one of the Find methods or the Seek method, when the underlying Recordset contains no records or the record has been deleted. Move to or select another record, and try the operation again. If the Recordset is empty, you cannot position to a current record. Check the BOF and EOF properties."
This function works fine when the form is opened without using the Switcboard. Is there any way around this?
Thanks in advance.
-Matt
Private Sub lbxIPHOSTOWNER_AfterUpdate()
Const cQ = """"
With Me.RecordsetClone
.FindFirst "IP_Address = " & cQ & Me.lbxIPHOSTOWNER & cQ
Me.Bookmark = .Bookmark
Me.Refresh
End With
End Sub
The error that I get says the following:
"No current record. (Error 3021)
This error occurs after the unsuccessful application of one of the Find methods or the Seek method, when the underlying Recordset contains no records or the record has been deleted. Move to or select another record, and try the operation again. If the Recordset is empty, you cannot position to a current record. Check the BOF and EOF properties."
This function works fine when the form is opened without using the Switcboard. Is there any way around this?
Thanks in advance.
-Matt