试试这样:
AQL->Recordset->Open(vNULL,vNULL,ADO::adOpenStatic, ADO::adLockReadOnly,ADO::adCmdUnknown));
看和下面的出错是否一样,确定是否参数有误。
AQL->Recordset->Open(SU,AC,ADO::adOpenStatic, ADO::adLockReadOnly,ADO::adCmdUnknown));
或者
AQL->Recordset->Open("select * from YOUVIEW",AC,ADO::adOpenStatic, ADO::adLockReadOnly,ADO::adCmdUnknown));
AC要先open(..);