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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to populate a Videosoft Flexarray controller? (97)

Status
Not open for further replies.

chrisjohns

Technical User
Mar 1, 2009
11
0
0
GB
Hi,

Im hoping someone knows how to populate the cells in a Videosoft Flexarray control? To this point ive been populating a table with a recordset but im now trying to avoid copying data into a table by using this method.

My current code receives data from an SQL statement and populates a table line by line.


Code:
Set rsDAOSet = CurrentDb.OpenRecordset(strTableName)
Do Until rsRecordset.EOF
    With rsDAOSet
        .AddNew
        For intLoop = 0 To rsRecordset.Fields.Count - 1
            If IsNull(rsRecordset.Fields(intLoop).Value) Then
                If .Fields(intLoop).Type = dbText Then
                    .Fields(intLoop) = ""
                Else
                    .Fields(intLoop) = 0
                End If
            Else
                .Fields(intLoop) = rsRecordset.Fields(intLoop).Value
            End If
        Next intLoop
        .Update
    End With
    rsRecordset.MoveNext
    DoEvents
Loop
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top