Results 1 to 3 of 3

Thread: Subscript out of range?

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 1999
    Location
    Greenville, MS, Washington
    Posts
    38

    Post

    Thanks!

  2. #2

    Thread Starter
    Member
    Join Date
    Dec 1999
    Location
    Greenville, MS, Washington
    Posts
    38

    Post

    Where is the problem?

    Code:
        Set hfgEquipment.DataSource = rsEquipment
        
            With hfgEquipment
            .Cols = 16
            .Rows = 2
            intRow = 0
            rsEquipment.MoveFirst
            Do Until intRow = 2
                For n = 0 To 16
                    .TextMatrix(intRow, n) = Format(.TextMatrix(intRow, n), " hh:mm ")
                Next n
                intRow = intRow + 1
                rsEquipment.MoveNext
            Loop
        End With

  3. #3
    Guest

    Post

    Here: For n = 0 To 16

    Your grid is 0 based, 16 cols is col 0 to 15.


    ------------------

    Vincent van den Braken
    EMail: [email protected]
    ICQ: 15440110
    Homepage: http://www.azzmodan.demon.nl





    [This message has been edited by Azzmodan (edited 02-21-2000).]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width