C
Chris
Hi, I' am trying to use the MSFlexGrid ActiveX control in an Access form
in order to present my data. I already have a sub code for the grid data
population (the code is working fine in VB6.0). So I have put a MSFlexGrid
Control on an Access form. I want to populatate my grid with the onClick
event
of a commandbutton. The code I am using is the following
Private Sub Command13_Click()
Dim testData(1 To 30, 1 To 24) As Double
Dim testHeaders(1 To 24) As String
Dim j As Long, i As Long
'
For j = 1 To 24
testHeaders(j) = "Time " & CStr(j)
Next
For i = 1 To 30
For j = 1 To 24
testData(i, j) = 1.11111
Next
Next
'
Call Load_Data_On_Grid(Me.grid_Load, testHeaders(), testData(), Me)
'
End Sub
'
When I run the code I am getting the "Type Mismatch" error. In the Debuger I
can see that
me.grid_load = "". I suppose that means that the grid object is not
initialized..
I dont Know what's happening. Can anyone give a hint on this...
TIA Chris
in order to present my data. I already have a sub code for the grid data
population (the code is working fine in VB6.0). So I have put a MSFlexGrid
Control on an Access form. I want to populatate my grid with the onClick
event
of a commandbutton. The code I am using is the following
Private Sub Command13_Click()
Dim testData(1 To 30, 1 To 24) As Double
Dim testHeaders(1 To 24) As String
Dim j As Long, i As Long
'
For j = 1 To 24
testHeaders(j) = "Time " & CStr(j)
Next
For i = 1 To 30
For j = 1 To 24
testData(i, j) = 1.11111
Next
Next
'
Call Load_Data_On_Grid(Me.grid_Load, testHeaders(), testData(), Me)
'
End Sub
'
When I run the code I am getting the "Type Mismatch" error. In the Debuger I
can see that
me.grid_load = "". I suppose that means that the grid object is not
initialized..
I dont Know what's happening. Can anyone give a hint on this...
TIA Chris