I have an Access97 db & ABC a query
I use the following code code to display the results into an MSHFlexGrid.
Why is it displayed JUST the first record ????
What is it wrong ???
Private Sub cmdReport_Click()
Dim rs As ADODB.Recordset
Dim cmdobj As ADODB.Command
Set rs = New ADODB.Recordset
Set cmdobj = New ADODB.Command
With cmdobj
.ActiveConnection = cnx
.CommandText = "ABC"
.CommandType = adCmdStoredProc
End With
Set rs = cmdobj.Execute()
Set Me.MSHFG.DataSource = rs
End Sub
I use the following code code to display the results into an MSHFlexGrid.
Why is it displayed JUST the first record ????
What is it wrong ???
Private Sub cmdReport_Click()
Dim rs As ADODB.Recordset
Dim cmdobj As ADODB.Command
Set rs = New ADODB.Recordset
Set cmdobj = New ADODB.Command
With cmdobj
.ActiveConnection = cnx
.CommandText = "ABC"
.CommandType = adCmdStoredProc
End With
Set rs = cmdobj.Execute()
Set Me.MSHFG.DataSource = rs
End Sub