ACC: Combo Boxes Limited to 65536 (64K) RowsID: Q187342
|
Novice: Requires knowledge of the user interface on single-user computers.
When you view the list portion of a combo box or list box that is based on
a table or query with more than 65536 records, you see only the first 65536
rows.
Microsoft Access limits the number of rows displayed in a combo box or list box to 65536 rows.
Use a query to restrict the number of rows the combo box or list box is displaying to no more than 65536.
This behavior is by design.
Option Explicit
Sub FillTable()
' Creates a table that contains
' 70,000 records.
Dim db As Database
Dim tbl As TableDef
Dim fld As Field
Dim rs As Recordset
Dim lng As Long
Set db = CurrentDb
Set tbl = db.CreateTableDef()
tbl.Name = "LargeTable"
Set fld = tbl.CreateField("Field1", dbLong)
tbl.Fields.Append fld
db.TableDefs.Append tbl
Set rs = tbl.OpenRecordset(dbOpenDynaset)
For lng = 1 To 70000
rs.AddNew
rs!Field1 = lng
rs.Update
Next
rs.Close
MsgBox "Table Created"
End Sub
FillTable
Additional query words: missing not all there truncated
Keywords : FmsCmbo
Version : WINDOWS:2.0,7.0,97
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: April 28, 1999