- ©«¤l
- 361
- ¥DÃD
- 57
- ºëµØ
- 0
- ¿n¤À
- 426
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- 2003,2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-13
- ³Ì«áµn¿ý
- 2022-12-8
|
¥»©«³Ì«á¥Ñ joey0415 ©ó 2014-1-16 13:24 ½s¿è
¦^´_ 3# GBKEE
¶Wª©¤j±z¦n
±zªº¤èªk¥i¥H¥Î
¥i¥H¦A½Ð±Ð¤@ÂI¡I
sql¬d¸ß¥X¨Óªº¸ê®Æ¬O¤@Ó¤Gºû°}¦C°}¦C¤¤²Ä¤@ºû©w¸qRecordsetªºÄæ¦ì¡]¸ê®Æ¦æ¡^¡A²Ä¤Gºû©w¸qRecordsetªº¸ê®Æ¦C¡C¦p¹Ï
½Ð¥Î¦³¤èªk¥i¥H±N¨º¨Ç¸ê®Æ¥H±zªº¤èªk©Î°j°éªº¤è¦¡¡A±N¤À²Õ«e¤T¦Wªº¸ê®Æ©ñ¶i¥t¤@Ó·sªº¤@ºû°}¦C¤¤¶Ü¡H
§Ú·Q¬d¸ß¦b©ñ¦b°}¦C¡A¿z¿ï¤]¦b°}¦C¡A³Ì«áª½±µ¦b¼g¶i¸ê®Æ®wÀ³¸Ó·|¤ñ¶K¦bcells¤W·|§Ö¤~¹ï¡H
Äæ¦ì¦p¤U
¤é´Á¡AªÑ²¼¥N½X¡A¶R¶q¡A½æ¶q¡A²b¶R½æ
¥H¤U¬O§Ú¼gªº¡A¥i¯à·|¦³¨Ç°ÝÃD¡A¶Wª©ªº¨S¦³°ÝÃD¡I
ÁÂÁÂ- Worksheets("sheet2").Activate
- ' r = 2 'pºâÁ`¦C¼Æ
- a = 1 '¨úÈ«áÁ`¦C¼Æ
- t = 1 '¨ú«e¤T¦W
- sname = arr(1, r)
- For r = LBound(arr, 2) To UBound(arr, 2)
- If arr(1, r) = sname Then
- If t <= 3 Then
- Cells(a, 5) = arr(0, r)
- Cells(a, 6) = arr(1, r)
- Cells(a, 7) = arr(5, r)
- t = t + 1
- a = a + 1
- End If
-
- Else
- sname = arr(1, r)
-
- Cells(a, 5) = arr(0, r)
- Cells(a, 6) = arr(1, r)
- Cells(a, 7) = arr(5, r)
- a = a + 1
- t = 2 '¦]¬°¶ñ¹L¤@¦¸¡A©Ò¥H³]¬°2
-
- End If
- r = r + 1
-
- Next
½Æ»s¥N½X |
|