I am working with a legacy database .mdb database that just crashes in Access 2007 when it hits lines with CurrentProject.Connection in them.
When I add the same code to brand new databases it crashes them too.
Dim rstDateFields As New adodb.Recordset
rstDateFields.Open "SELECT * FROM defDateFields ORDER BY FieldID", CurrentProject.Connection, adOpenDynamic, adLockOptimistic
References set to: VBA, MS ACCESS 12.0 object library, OLE automation, MS Ofrfice 14.0 Access db engine object
CurrentProject.Connection
open when this code executes? – Joshua Drake