Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Missing records in a MSHFlexGrid

Status
Not open for further replies.

ibmunck

Technical User
Jun 5, 2003
3
DK
I use an ADO to connect to a table in an Access database.
To display the entire table I use a MSHFlexGrid component.
The problem is: number of records up to 2048 will be shown i MSHFlexGrid but when I have more records the exceeding records will be ignored (all records are in the physical table). Why missing records ?
My code:

Public JetOLEDB As String 'Provider og path
Public objcnn As New ADODB.Connection 'Connection til ADODB
Public objRst As New ADODB.Recordset 'Recordsæt til ADODB

JetOLEDB = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\Maalinger.mdb"
objcnn.Open JetOLEDB
StrSql = "SELECT * FROM Table1;"
objRst.Open StrSql, objcnn, adOpenStatic
Set MSHFlexGrid1.DataSource = objRst.DataSource


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top