We have a DBGRID in our program. We have it retrieving information
from our database with a statement such as:
temp1text = "select * from oder where oder.customerno='" & Text1.Text & "'"
Data3.RecordSource = temp1text
Debug.Print "data3.recordsource", Data3.RecordSource
Set rs = Data3.Recordset
Data3.Refresh
The Database Grid has its data source set to "Data3"
How do we find out how many rows we retrieved in the database grid
I assume we can write:
rowcount = DBGrid.RecourdSource.RecordCount
or
rowcount = DBGrid.rowcount
However, My Visual Basic Five isn't accepting either of hte above.
numberOfRecordsReturned = Data3.RecordSet.RecordCount
'the data control has the information you need not the DBGrid
----
Shane Forbes
Norwalk, CT