B
branko
Can anyone help with this procedure?
When I put some table name in strTable I get many records
and columns but when I put query name in strTable I got
nothing. Col and Row Count = 0
Dim intColCount as Integer
Dim intRowCount as Integer
Dim strTable As String
Dim rstTemp As Recordset
strTable = "qryName" ' "tblName"
Set rstTemp = CurrentDb.OpenRecordset(strTable,
dbOpenSnapshot)
intColCount = rstTemp.Fields.Count
rstTemp.MoveLast
intRowCount = rstTemp.RecordCount
When I put some table name in strTable I get many records
and columns but when I put query name in strTable I got
nothing. Col and Row Count = 0
Dim intColCount as Integer
Dim intRowCount as Integer
Dim strTable As String
Dim rstTemp As Recordset
strTable = "qryName" ' "tblName"
Set rstTemp = CurrentDb.OpenRecordset(strTable,
dbOpenSnapshot)
intColCount = rstTemp.Fields.Count
rstTemp.MoveLast
intRowCount = rstTemp.RecordCount