This samples of code cause the such problem in the Load, Activate, Open events of the Display Form and some other forms in my .accdb (Access 2010)
DAO method:
CurrentDb.OpenRecordset("SELECT count(ID)...;")(0)
ADO method:
Dim rst As New ADODB.Recordset
rst.Open "SELECT...