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

vbÖÐADO´ò¿ªÊý¾Ý¿âËø¶¨µÄÎÊÌâ

´óÏÀÃÇ£ºÄãÃǺã¡ÏÖÔÚÓÖÒªÓÐÒ»¸öÎÊÌâÐèÒªÇë½Ì£¬±àÒ»³ÌÐò£¨VB6£«ACCESS2000£©£¬ÓÃADOÓï¾ä²Ù×÷Êý¾Ý¿â£¬ÇëÎÊÊÇ·ñÓпØÖÆÊý¾Ý¿âºÍÊý¾Ý±íËø¶¨»òȨÏ޵IJÎÊý£¬ÎҼǵÃÔÚDAOÖÐÓУ¬Èçopendatabase»òopenrecordest¶¼´øÓпØÖÆËø¶¨µÄ²ÎÊý£¬ÇëÄÄλ´óÏÀ´Í½Ì¡£Ð»Ð»£¡£¡£¡¾¡Á¿ËµÏêϸµã£¬×îºÃÓÐÀý¾ä¡£
¸÷λ´óÏÀѽ£¬Õâ¸öÎÊÌâÓÐÕâôÄÑÂð£¬Ôõôµ½ÏÖÔÚҲûÓÐÈËÖ¸µ¼ÎÒÒ»ÏÂѽ£¡£¡£¡

ADO£¬Ò²ÓÐÓÎ標類ÐÍ與鎖類ÐÍ
CursorTYpe:adOpenDynamic  adOpenForwardOnly adOpenKeyset adOpenStatic
LockType:adLockBatchOptimistic adLockOptimistic adLockPessimistic adLockReadOnly


ÔÙ補³äһϣ¬ÔÚÄã´ò開記錄¼¯時£¬Rs.Open SQL語¾ä,Connect連½Ó,CurosrTypeÓÎ標類ÐÍ,LockType銷類ÐÍ¡£µ«Èç¹û樓Ö÷ҪҪͨ過鎖來¿ØÖÆ數據ÍêÕûÐÔ與Ò»ÖÂÐÔ£¬這個ÊÇ辦²»µ½µÄ¡£Èç¹ûSQL Server數據庫£¬¿ÉÒÔ²ÉÓÃÊÂ務機ÖÆ£¬Access£¬Ö»ÄܲÉÓÃÈË為·½Ê½¡£ÒÔǰÎÒÊÇͨ過ÔÚ±íÖÐÔö¼ÓÒ»欄£¬來設ÖÃÆä狀態£¬Õý³£²Ù×÷ÊÇ沒問題£¬Èç¹û³ö現異³£»òËÀ機£¬進ÐÐÊÖ動½â鎖¡£

http://download.csdn.net/source/1371356


Ïà¹ØÎÊ´ð£º

VBÖÐÓÐÎÞTApplication¶ÔÓ¦ÀàÐÍ

ÎÒÓÃDelphiдÁËÒ»¸öDLL, DLLÀïÓÐMDIµÄ×Ó´°Ìå,DLL³õʼ»¯Ê± ´«µÝµ÷ÓÃÕßµÄTApplication¸øDLL, ÔÚDelphi7Öе÷ÓÃÒѾ­Í¨¹ý,µ«ÊDz»ÖªµÀÔÚVBÖÐÓÐÎÞTApplication¶ÔÓ¦ÀàÐÍ, ÊÇ·ñÄÜÔÚVBÖе÷ÓÃ?
ÄãºÃ£¬ÓÃinstance²»ÊǾͿÉÒÔÁË&# ......

VB ×Ö·ûÎÊÌâ

  TF1.text = " <_2_ZCHGZBH> " & MSFlexGrid1.TextMatrix(k, 1) & " </_2_ZCHGZBH> "
   

´ó¼ÒºÃ£¬ÎÒÓÃÉÏÃæÒ»¸ö¶«Î÷¸³Öµ  TF1.text = & ......

vbÖÐsqlÓï¾äÒýºÅÎÊÌâ

"insert into user1(name,age) values('" & Text1.Text & "','" & Text2.Text & "' )"
ÎÊÌ⣺¶ÔsqlÓï¾äÖе¥¡¢Ë«ÒýºÅÄ£ºý¡£¼ÈÈ» Text1.Text¾Í±íʾ ......

VB ÔõôÄÜÌá¸ßÎı¾ÎļþµÄÑ­»·ËÙ¶È

ÌâÄ¿ÃèÊöÓ¦¸Ã²»ÊǺÜ׼ȷ¡£
ÏÖ×´ÊÇ£º¼ÙÈçÒ»¸öÎı¾Îļþ¹²100ÐУ¬ÄÇôÎÒÑ­»·´ÎÊý×î´ó¾ÍÊÇ100×100=10000Ï£¬»¨·Ñʱ¼ä·Ç³£¶à£¬ÇëÎÊÓÐûÓа취Äܹ»Ìá¸ß¶ÔÎı¾ÎļþµÄÑ­»··ÃÎÊËÙ¶È¡£·ÇÊý¾Ý¿â¼¼Êõ¡£
ÄãҪѭ»·×öʲô£ ......

VBÈçºÎÁªÏµÁ½¸ö´°Ì壿

¾ÍÊÇÉè¼ÆÒ»¸ö¼ÆËã»úÄ£Ä⿼ÊÔϵͳ£¬´øÓÐѧÉúºÍ¹ÜÀíÔ±£¬ËùÒԵǼ´°ÌåºÍÖ÷´°ÌåÏë·Ö¿ª£¬µÇ½ѧÉúµÄÏÔʾѧÉúµÄÖ÷´°Ì壬µÇ½¹ÜÀíÔ±ÏÔʾ¹ÜÀíÖ÷´°Ì壬ÎÒÖ»»áÒ»¸ö´°ÌåÓÃÒ»¶Ñ¿Ø¼þ£¬ÏÖÔÚÏíÓжà¸öÖ÷´°Ì壬²»ÖªµÀÔõô×ö£¬Ï£ÍûÇë´ó ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ