C
ChrisK
Hi all,
I've been working with the following code in Access 2000:
Private Sub lstQuoteHistory_DblClick(Cancel As Integer)
Dim rst As DAO.Recordset
Set rst = Me.RecordsetClone
rst.FindFirst "QuoteID=" & Me.lstQuoteHistory
If rst.NoMatch Then MsgBox "!"
Me.Bookmark = rst.Bookmark
'Show controls on the form etc
End Sub
With most records, this code works but on some of the records in the table,
the record is not found and the rst.NoMatch condition is met (this is
obviously just for debugging). QuoteID is a Long Integer and
lstQuoteHistory is bound to this integer value
If I search on the table for the QuoteID values, I can find them with no
problems...
Any ideas?
CK
I've been working with the following code in Access 2000:
Private Sub lstQuoteHistory_DblClick(Cancel As Integer)
Dim rst As DAO.Recordset
Set rst = Me.RecordsetClone
rst.FindFirst "QuoteID=" & Me.lstQuoteHistory
If rst.NoMatch Then MsgBox "!"
Me.Bookmark = rst.Bookmark
'Show controls on the form etc
End Sub
With most records, this code works but on some of the records in the table,
the record is not found and the rst.NoMatch condition is met (this is
obviously just for debugging). QuoteID is a Long Integer and
lstQuoteHistory is bound to this integer value
If I search on the table for the QuoteID values, I can find them with no
problems...
Any ideas?
CK