Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8583111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:27:25+00:00 2026-06-11T21:27:25+00:00

MSFlexGrid gives this 30006 Error each time it reaches ~350,000 cells. Error Definition: Run-time

  • 0

MSFlexGrid gives this 30006 Error each time it reaches ~350,000 cells.

Error Definition:

Run-time error ‘30006’:

Unable to Allocate Memory For FlexGrid

My Code Sample:

Do While Not rs.EOF
    With MSFlexGrid1
        .Rows = .Rows + 1
        .TextMatrix(i, 1) = rs.Fields("1")    's1
        .TextMatrix(i, 2) = rs.Fields("2")    's2
        .TextMatrix(i, 3) = rs.Fields("3")    'f1
        .TextMatrix(i, 4) = rs.Fields("4")    'gr1
        .TextMatrix(i, 5) = rs.Fields("5")    'gr2
        .TextMatrix(i, 6) = rs.Fields("6")    'gr3
        .TextMatrix(i, 7) = rs.Fields("7")    'gr4
        .TextMatrix(i, 8) = rs.Fields("8")    'gr5
        .TextMatrix(i, 9) = rs.Fields("9")    'gr6
        .TextMatrix(i, 10) = rs.Fields("10")  'gr7
        .TextMatrix(i, 11) = rs.Fields("11")  'gr8
        .TextMatrix(i, 12) = rs.Fields("12")  'c1
        .TextMatrix(i, 13) = rs.Fields("13")  'g1
        .TextMatrix(i, 14) = rs.Fields("14")  's3
        .TextMatrix(i, 15) = rs.Fields("15")  'f2
        .CellAlignment = 4
        .TopRow = .Rows - 1
        .Refresh
    End With
    i = i + 1
    rs.MoveNext
Loop

i need to use at least 600,000 cells in MSFlexGrid, so how can i resolve this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T21:27:26+00:00Added an answer on June 11, 2026 at 9:27 pm
    'I got 15 columns so this makes 21874row * 15column = 328110 cells
    'it blows at 21875th row so 328125th cell is not reachable
    'for that reason i reset the grid so it keeps 
    Do While Not rs.EOF
        With MSFlexGrid1
            If .Rows >= 21874 Then
                .Rows = 2
                .Clear
                i = 1
            End If
            .Rows = .Rows + 1
            .TextMatrix(i, 1) = rs.Fields("1")    's1
            .TextMatrix(i, 2) = rs.Fields("2")    's2
            .TextMatrix(i, 3) = rs.Fields("3")    'f1
            .TextMatrix(i, 4) = rs.Fields("4")    'gr1
            .TextMatrix(i, 5) = rs.Fields("5")    'gr2
            .TextMatrix(i, 6) = rs.Fields("6")    'gr3
            .TextMatrix(i, 7) = rs.Fields("7")    'gr4
            .TextMatrix(i, 8) = rs.Fields("8")    'gr5
            .TextMatrix(i, 9) = rs.Fields("9")    'gr6
            .TextMatrix(i, 10) = rs.Fields("10")  'gr7
            .TextMatrix(i, 11) = rs.Fields("11")  'gr8
            .TextMatrix(i, 12) = rs.Fields("12")  'c1
            .TextMatrix(i, 13) = rs.Fields("13")  'g1
            .TextMatrix(i, 14) = rs.Fields("14")  's3
            .TextMatrix(i, 15) = rs.Fields("15")  'f2
            .CellAlignment = 4
            .TopRow = .Rows - 1
            .Refresh
        End With
        i = i + 1
        rs.MoveNext
    Loop
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do I print msflexgrid with a picture in some of its cells in
I've got to call the click event for an MsFlexGrid object. Private Sub MSFlexGridboxcodelist_Click()
I have a VB project that is converted from VB6 to VB.NET. In this,
Is it possible to bind a msflexgrid/mshflexgrid to a custom datasource in vb6?
I installed a vb6 application on windows seven and office 2010. This application works
How do I change the format in which the date is stored in a
Realbasic allows you to include e.g an MS Flexgrid control in your Realbasic project
I wish to use a flex grid in my access form. I downloaded and
I have a VB6 project that is using a SQL2008 database. The project consists
I am performing a bit of maintenance on an ancient application written years and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.