S
Sandra
Is there some kind of limit on the number of records a
lookup combo box can search through?
I created a form with a combo box that looks up records
in the form. Using the following (partially) MS
generated code (I modified it a little):
Private Sub ComboXXX_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
If Not IsNull(Me.ComboXXX) Then
rs.FindFirst "[MyNum] = " & Str(Me![ComboXXX])
If rs.NoMatch Then
MsgBox "The number you entered was not found. Please
try again", vbDefaultButton1, "No Record Found"
Else
Me.Bookmark = rs.Bookmark
End If
Else
End If
This form is based on query that pulls from three large
tables. Now, what I noticed is that once that underlying
query hit 128,000 records, this code no longer works
properly. I fear I have hit up against an Access
limitation that I didn't know about. Is there some
reason why the bookmark property doesn't work after 128k
records? I was sure I read somewhere that Access can
handle unlimited bookmarks when a form is opened.
Any help in getting around this is greatly appreciated!!
lookup combo box can search through?
I created a form with a combo box that looks up records
in the form. Using the following (partially) MS
generated code (I modified it a little):
Private Sub ComboXXX_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
If Not IsNull(Me.ComboXXX) Then
rs.FindFirst "[MyNum] = " & Str(Me![ComboXXX])
If rs.NoMatch Then
MsgBox "The number you entered was not found. Please
try again", vbDefaultButton1, "No Record Found"
Else
Me.Bookmark = rs.Bookmark
End If
Else
End If
This form is based on query that pulls from three large
tables. Now, what I noticed is that once that underlying
query hit 128,000 records, this code no longer works
properly. I fear I have hit up against an Access
limitation that I didn't know about. Is there some
reason why the bookmark property doesn't work after 128k
records? I was sure I read somewhere that Access can
handle unlimited bookmarks when a form is opened.
Any help in getting around this is greatly appreciated!!