Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

VC/MFCÖеÄACCESSÊý¾Ý¿â·ÃÎÊʵÏÖ

ǰЩÌìŪһ¸ö·ÃÎÊACCESSÊý¾Ý¿âµÄС¶«Î÷£¬·ÑÁËЩÁ¦Æø²ÅŪºÃ¡£
ËäÈ»»¹ÓÐЩ²»¾¡ÈËÒ⣬µ«ÊÇÖÕ¾¿»¹ÊÇ¿ÉÒÔÓÃÁË£¬
ÔÚÕâÀï·ÖÏíÒ»ÏÂ×Ô¼ºµÄʵÏÖ·½·¨ºÍ¾­Ñé¡£
ÀïÃæµÄ¶«Î÷ÍøÉ϶¼ÓУ¬µ«ÊÇ£¬ÕâÀïµÄÊÇ×îÈ«µÄ¡£
VC/MFC·ÃÎÊACCESSÊý¾Ý¿â
·½·¨1£º
1  ´´½¨Ò»¸ö»ùÓÚ¶Ô»°¿òµÄÓ¦ÓóÌÐò¡£
    ·ÅÈëÁ½¸öActiveX ¿Ø¼þ Microsoft ADO Data Control,version 6.0 ... ºÍ Microsoft DataGrid Control,Version 6.0 Èç¹ûûÓÐÁ½¸ö¿Õ¼äµÄ»°£¬Çë°²×°OFFICE×é¼þ¡£
2 Ϊ¿Ø¼þÉèÖÃÊôÐÔ¡£
    1) ΪADO Data Control ÉèÖÃÊôÐÔ£ºControl -> Use Connection String -> Build
        ÔÚµ¯³öµÄ¶Ô»°¿òÖÐÑ¡Ôñ Microsoft Jet 4.0 OLE DB Provider -> ÏÂÒ»²½ -> ÔÚ"Ñ¡Ôñ»òÊäÈëÊý¾Ý¿âÃû³Æ"´¦£¬Ñ¡ÔñËù´´½¨µÄÊý¾Ý¿âÎļþ£¬ÀýÈç:d:\test_db\testdb.mdb¡£ÃÜÂ봦ĬÈÏΪ¿Õ£¬Èç¹ûÓû§±íÓÐÃÜÂëµÄ»°£¬ÊäÈëÃÜÂ룬²¢Ñ¡ÖÐ"ÔÊÐí±£´æÃÜÂë" -> µ¥»÷"²âÊÔÁ¬½Ó" È絯³ö"²âÊÔÁ¬½Ó³É¹¦" ±íʾÊý¾ÝÎļþÒѾ­¿ÉÒÑʹÓá£Ö±½ÓÈ·¶¨£¬»Øµ½Îª¶Ô»°¿ò×ÊÔ´±à¼­½çÃæ¡£
       ΪÕâÒ»¿Ø¼þµÄ£ºRecordSource Ñ¡ÏîÉèÖÃÊôÐÔÈçÏ£º
       Command Type Ñ¡Ôñ 1 -adCmdText
       Command Text(SQL) ÖÐ ÊäÈëSQLÓï¾ä : select * from mydb;
       ADO Data Control ¿Ø¼þµÄÊôÐÔ¾ÍÉèÖÃÍê³ÉÁË¡£¹Ø±ÕÊôÐÔÉèÖýçÃæ¡£
    2) ΪDataGrid ControlÉèÖÃÊôÐÔ¡£
       DataSource ÁбíÖÐÑ¡Ôñ£ºIDC_ADODC1
       ¹Ø±ÕÊôÐÔÉèÖýçÃæ¡£
±àÒ룬ÔËÐС£Èç¹ûÊý¾Ý¿âÖÐÓÐÊý¾ÝµÄ»°£¬¾Í»áÔÚDataGridÖÐÏÔʾ³öÀ´ÁË¡£
Ïë½øÐÐÆäËûµÄÊý¾Ý¿â²Ù×÷µÄ»°£¬ÈçÏÂÀý£º
       ½Ó×ÅÉÏÃæµÄ³ÌÐò²½Ö裬
       ΪADO Data Control Ìí¼ÓÒ»¸ö±äÁ¿£ºm_adoDC;
       ΪData Grid Ìí¼ÓÒ»¸ö±äÁ¿£ºm_adoDG;
       Ò»¸ö°´Å¥£¬Ë«»÷Ϊ°´Å¥Ôö¼Óº¯Êý¡£ÔÚº¯ÊýÖÐÔö¼ÓÏÂÃæµÄ´úÂ룺
       CString strTem = "select * from mydb where SUserName <> 'ÕÅÈý'";
  &


Ïà¹ØÎĵµ£º

VB.NETѹËõACCESSÊý¾Ý¿â

'´´½¨Êý¾Ý¿â
  Private Sub Create(ByVal mdbPath As String)
        If File.Exists(mdbPath) Then
            Throw New Exception("Ä¿±êÊý¾Ý¿âÒѾ­´æÔÚ£¬ÎÞ·¨´´½¨")
        ......

accessÊÂÎñ²åÈë¶àÌõ¼Ç¼

protected void Button1_Click(object sender, EventArgs e)
    {
        /*=============²âÊÔͨ¹ý===============*/
       
OleDbConnection con = new
OleDbConnection("Provider=Microsoft.Jet.OleDb.4.0;Data
Sou ......

C#¶ÁÈ¡access±í£¬²¢°ÑÊý¾ÝÏÔʾÔÚgridcontrolÖÐ

 //¶ÁÈ¡±ê×¼Áбí
        private void setModelList()
        {
            OleDbConnection Connection = null;
         &n ......

AccessÊý¾Ý¿âÖвéѯÊý×éÀàÐÍ×ֶεÄASP´úÂëSQLÓï·¨

 ½ñÌìÔÚÐÞ¸ÄÒÔÇ°¿ª·¢µÄÒ»¸öÍøÕ¾µÄʱºòÓöµ½Ò»¸öÎÊÌ⣬ÒòΪ¹¦ÄܵÄÐèÒª£¬ÒÔÇ°µÄÒ»¸öÊý×ÖÀàÐÍ×ֶθıäΪÎı¾×ֶΣ¬ÒòΪÕâ¸ö×Ö¶ÎÐèÒª°üº¬¶à¸öÀà±ðµÄID£¬ÒÔÇ°Õâ¸ö×Ö¶ÎÖ»¶ÔÓ¦Ò»¸öIDµÄ¡£
ÍøÕ¾ÊÇASP VBÓïÑԵģ¬Êý¾Ý¿âʹÓõÄÊÇAccess
ÐÞ¸ÄÊý¾ÝÀàÐÍÖ®ºóǰ̨µÄ²éѯ´úÂë¾Í²»ÄÜʹÓÃÖîÈçxID=1ÕâÖÖÌõ¼þÁË¡£ÓÉÓÚÏÖÔÚ¸Ã×ֶαäΪÎı¾ÀàÐ ......

Access Web System from external

Take Equity Collection System as an example, Some other office collegues want to access it from home without VPN, The way to check is:
1.  Check if it's limited in network, this needs to confirm with network people
2.  If the step 1 passed, get the external IP address of the system, map ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ