1.VBå
³äºACCESSçç¨åºä»£ç
VBå ³äºACCESSçç¨åºä»£ç
å¨VBèåâè¿ç¨âå¼ç¨âå¯¹è±¡åº "Microsoft ActiveX Data Objects 2.5 Library"
'å®ä¹
Private Sub Command1_Click()
Const connStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
dim conn As New ADODB.Connection
dim Rs As New ADODB.Recordset
dim sql As string
conn.Open connStr & "ãæçæ°æ®åºè·¯å¾åæ件.mdbã"
sql = "SELECT * FROM ä½ ç表åå称"
Rs.Open sql,源码pushlet源码官网 conn, adOpenKeyset, adLockPessimistic
If Not Rs.State = adStateOpen Then 'ç¡®å®æ°æ®åºè½é¡ºå©æå¼åï¼æçç¥è¿ä¸ªå¤æ
MsgBox "æ°æ®åºæ²¡æå¼å¯ãæ£æ¥æ°æ®åºçé¾æ¥æ¯åªå¿åºé®é¢ï¼"
exit sub
End If
âæ°æ®åºè½å¼å¯æä¼ç»§ç»å¾ä¸ä¸è¡è¿è¡
Rs.MoveLast: Rs.MoveFirst
âè¿ä¸è¡åªæ¯æ£æ¥Rsæ¯ä¸æ¯æ£å¸¸è¿è¡ï¼æ´ä½ä»£ç å®æåå¯ä»¥ç§»é¤
MsgBox "è®°å½éæ»å ±ç¬æ°ï¼" & Rs.RecordCount
â æ°æ®åºç¡®å®è½æ£å¸¸å¼å¯äºï¼æ³ç»§ç»æä½æ°å¢ãæ´æ°ãå é¤...é½è¡
'å¼å§æ°å¢ä¸ç¬æ°æ®
'Rs.AddNew
'.......èµå¼ä»£ç
'.......èµå¼ä»£ç .
âRs.Update
'Rs.Refresh
End Sub
服装销售 源码_服装销售 源码怎么做
驚險!與橫向汽車碰撞 騎士彈飛摔車頂
俄軍殺進烏東攻城掠地! 普亭下令「增兵18萬人」
醫點名「這款卸妝用品」別長期使用! 清潔後感到緊繃、乾燥都是警訊
android 语音源码_安卓语音识别源码
福島排污|海水樣本第3度檢出放射性物質氚