T
Tom
I want to get the number of records in the table. Seems to me this worked
before, in another module. Does anyone know what I'm doing wrong?
Set DAOdbs = CurrentDb
'------------------------------------------------------------
'
' Open the 'Detail' table
'
Set DAOrs = DAOdbs.OpenRecordset(strDetailTableName)
intNmbrOfRecs = DAOdbs.TableDefs(strDetailTableName).RecordCount
DAOrs.Close
Set DAOrs = Nothing
DAOdbs.Close
Set DAOdbs = Nothing
Thanks in advance,
Tom
before, in another module. Does anyone know what I'm doing wrong?
Set DAOdbs = CurrentDb
'------------------------------------------------------------
'
' Open the 'Detail' table
'
Set DAOrs = DAOdbs.OpenRecordset(strDetailTableName)
intNmbrOfRecs = DAOdbs.TableDefs(strDetailTableName).RecordCount
DAOrs.Close
Set DAOrs = Nothing
DAOdbs.Close
Set DAOdbs = Nothing
Thanks in advance,
Tom