Êý¾Ý¿âÄÜ·ñͬʱ´ò¿ª¶à¸ö¼Ç¼¼¯£¨Access£©
m_pRemRecordset.CreateInstance(__uuidof(Recordset));
try
{
m_pRemRecordset->Open("SELECT * from RemindList",// ²éѯRemindList±íÖÐËùÓÐ×Ö¶Î
theApp.m_pConnection.GetInterfacePtr(),// »ñÈ¡¿â½Ó¿âµÄIDispatchÖ¸Õë
adOpenDynamic,
adLockOptimistic,
adCmdText);
}
catch(_com_error *e)
{
AfxMessageBox(e->ErrorMessage());
}
m_pSetRecordset.CreateInstance(__uuidof(Recordset));
try
{
m_pSetRecordset->Open("SELECT * from Set", // ²éѯSet±íÖÐËùÓÐ×Ö¶Î
theApp.m_pConnection.GetInterfacePtr(),// »ñÈ¡¿â½Ó¿âµÄIDispatchÖ¸Õë
adOpenDynamic,
adLockOptimistic,
adCmdText);
}
catch(_com_error *e)
{
AfxMessageBox(e->ErrorMessage());
}
ÔÚÖ´ÐÐm_pSetRecordset->OpenÕâÌõÓï¾ä¾Í»á¹Òµô£¿
°ÑÉÏÒ»¸ö¼Ç¼¼¯µÄÊý¾Ý±£´æµ½Êý×éµÈ£¬È»ºó¹Ø±Õ£¬´ò¿ªÁíÒ»¸ö
н¨Ò»¸öRecordset¶ÔÏó, ²»¾ÍÄÜ´ò¿ªÁË
µÚ¶þ´ÎOpen()ǰ£º
m_pRecordset->CancelUpdate()
m_pRecordset->Close();
µ«Êǵ¥¶À´ò¿ªÒÔϵļǼ¼¯Ò²»á¹Ò£¬£º
m_pSetRecordset.CreateInstance(__uuidof(Recordset));
try
{
m_pSetRecordset->Open("SELECT * from Set", // ²éѯSet±íÖÐËùÓÐ×Ö¶Î
theApp.m_pConnection.GetInterfacePtr(),// »ñÈ¡¿â½Ó¿âµÄIDispatchÖ¸Õë
adOpenDynamic,
adLockOptimistic,
adCmdText);
}
catch(_com_e
Ïà¹ØÎÊ´ð£º
ÎÒÓÃAccessÊý¾Ý¿â×öÁËÒ»¸öͼÊéÊý¾Ý¿â£¬ÀïÃæÓÐÒ»¸ö×Ö¶ÎÊÇISBN£¬¾ÍÊÇISBNºÅ£¬µ«ÊÇÖ»µÄÒ»×Ü·ÖͼÊéдµÄISBNºÅ£¬ÓеÄûд£¬Ð´µÄÄÇÒ»²¿·ÖÓеÄISBNÊÇÖØ¸´µÄ£¬ÄÜ·ñÓÃSQLÓïÑÔ°ÑÖØ¸´µÄ¹ýÂ˵ô£¬µ«Ã»Ð´ISBNºÅµÄͼÊé²»ÄܹýÂ˵ô£¬È ......
ÎÒÔÚÄ£¿éÀï×Ô¶¨ÒåÁËÒ»¸öº¯Êý:stradd()
¿ÉÊÇÔÚadoquery1.sql.add('select stradd(author) from book');
ʱÌáʾstradd䶨Òå...
Õâ¸öÎÊÌâÓÐʲô°ì·¨¿ÉÒÔ½â¾öµÄÂð? ·Ç³£¸Ð¼¤!
(ÔÚA ......
ÇëÎʸ÷λ´óʦ£¬ÎÒÏÖÔÚÐèÒª½«XMLµÄÊý¾ÝʵʱµÄ´æÈëµ½Êý¾Ý¿âÖУ¬ÎÒÊÇÓÃasp±àµÄ³ÌÐò£¬´óÁ¿Ãǰïæ·ÖÎö һϣ¡£¡£¡
ÏÂÃæÊÇÎÒµÄXMLÎļþ´úÂë
XML code:
<?xml version="1.0" encoding="utf-8"? ......
Âé·³¸÷λ°ïæ¿´¿´°¡
´úÂëÈçÏ£º
CoInitialize(NULL);
_ConnectionPtr pConn(__uuidof(Connection));
_RecordsetPtr pRst(__uuidof(Recordset));
pConn->ConnectionString="Provider ......
µÚÒ»´Î½Ó´¥CrystalReport
¼±Ñ°ÕÒVb.net Access ͨ¹ý²éѯ³öµÄÊý¾ÝÊä³öµ½CrystalReportµÄÀý×Ó.
ÓеÄÅóÓÑÂé·³·¢À´Ñ§Ï°.¶àл!
¸úÄãµÄÒªÇó²î²»¶à£¬²Î¿¼Ò»Ï£º
http://topic.csdn.net/u/20090823/21/87af02d3-f4ca-480 ......