ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

¦p¦ó²MªÅ¾ãµ§¸ê®Æªº¬Y¤@Äæ¦ì­È©O¡H

¦p¦ó²MªÅ¾ãµ§¸ê®Æªº¬Y¤@Äæ¦ì­È©O¡H

¦U¦ì¤j¤j¦n¡G
¤p§Ì¥¿¦b¾Ç²ß¨Ï¥Îvba
¾Þ§@access¸ê®Æ®w
²{¦³¤@½d¨Ò·Q±N¬d¸ßªº
¬Y¤@µ§¸ê®Æ«ü©wªºÄæ¦ì¡G¿¤¥«
¬Û²Å®É±N¸Ó¿¤¥«Äæ¦ì­È²MªÅ
¦ý¤p§Ì¨Ï¥Îvba»yªk·|¥X²{
¿ù»~°T®§¡C½Ð°Ý¤p§ÌÀ³¦p¦ó
§ï¥¿»yªk©O¡H

°õ¦æ¶¥¬q¿ù»~-2147217887 (80040e21)
¨ÑÀ³°Ó¸ê°T¦æ¬F°ÏÄæ¦ì¤£¯à¬O¹sªø«×¦r¦ê
  1. Option Compare Database
  2. Option Explicit

  3. 'ADO °O¿ý§ó·s
  4. Public Sub ADOcontoExtDB()
  5.   Dim con2 As New ADODB.Connection
  6.   Dim rcord2 As New ADODB.Recordset
  7.   
  8.   Set con2 = CurrentProject.Connection
  9.   rcord2.Open "Select * From ¨ÑÀ³°Ó¸ê°T Where ¿¤¥« Like '¥x¤¤%'", _
  10.               con2, adOpenKeyset, adLockPessimistic
  11.   With rcord2
  12.     Do While Not .EOF
  13.     Debug.Print .AbsolutePosition, .Fields("¨ÑÀ³°Ó½s¸¹"), .Fields(2), .Fields(3), .Fields(6)
  14.     .MoveNext
  15.     Loop
  16.   End With
  17.   rcord2.MoveFirst
  18.   
  19.   With rcord2
  20.     Do While Not .EOF
  21.       .Fields(6).Value = ""   '¦pªGÂù¤Þ¸¹¤º¥[³æ¤Þ¸¹¥i°õ¦æ¡A¦ý¤£¥[³æ¤Þ¸¹´N·|¥X²{¿ù»~°T®§
  22.       .MoveNext
  23.     Loop
  24.   End With
  25.   con2.Close
  26. End Sub
½Æ»s¥N½X

°õ¦æ¶¥¬q¿ù»~-2147217887 (80040e21)
¨ÑÀ³°Ó¸ê°T¦æ¬F°ÏÄæ¦ì¤£¯à¬O¹sªø«×¦r¦ê,¦pªG="",«h²Å¦X¿ù»~°T®§,¦]¬°¸ê®Æ¬°¹sªø«×¦r¦ê,À³§ï³]©w

TOP

¦^´_ 2# aa7551


    ¤j¤j±z¦n¡G

ÁÂÁ±z¡I
¦ý¤p§Ì¬O·QÅý¨Ï¥ÎªÌ¥i¥H
­×§ï¤@µ§¸ê®Æ¤º¬Y¤@Äæ¦ì¸ê®Æ
©Î¬O¥i²MªÅÄæ¦ì¸ê®Æ¡C
¦]¦¹¡A¤£·Q§ïÅÜ­ì³]­p¤º®e¡C

·P®¦¤j¤j¡I

TOP

¦pªG±N¸ÓÄæ¦ìªº"¤¹³\¹sªø«×¦r¦ê"³]©w¬°yesÀ³§ï¥i¥H¸Ñ¨M

TOP

        ÀR«ä¦Û¦b : ¦³¤ß´N¦³ºÖ¡A¦³Ä@´N¦³¤O¡A¦Û³yºÖ¥Ð¡A¦Û±oºÖ½t¡C
ªð¦^¦Cªí ¤W¤@¥DÃD