VB+AccessÉè¼ÆÍ¼Êé¹ÜÀíϵͳ ÏÂÔØ±¾ÎÄ

ͼ45 ÔËÐеÄͶËß¹ÜÀí×Ó´°Ìå ÒÔÏÂΪ´°ÌåµÄ´úÂë: Private Sub Command1_Click() On Error GoTo adderr Text1.SetFocus Adodc1.Recordset.AddNew Exit Sub adderr: MsgBox Err.Description End Sub Private Sub Command2_Click() On Error GoTo deleteerr With Adodc1.Recordset If Not .EOF And Not .BOF Then If MsgBox(\ɾ³ýµ±Ç°¼Ç¼Âð?\

.Delete

.MoveNext

If .EOF Then .MoveLast

End If

End If End With Exit Sub deleteerr: MsgBox Err.Description End Sub Private Sub Command3_Click() Adodc1.Recordset.MovePrevious If Adodc1.Recordset.BOF Then MsgBox \ÕâÊǵÚÒ»Ìõ¼Ç¼\Adodc1.Recordset.MoveFirst End If End Sub Private Sub Command4_Click() Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then MsgBox \ÕâÊÇ×îºóÒ»Ìõ¼Ç¼\Adodc1.Recordset.MoveLast

End If

End Sub

Private Sub Command5_Click()

If Adodc1.Recordset.EOF Then

MsgBox \¼Ç¼¿Õ\End Else Adodc1.Recordset.MoveFirst End If Exit Sub End Sub Private Sub Command6_Click() If Adodc1.Recordset.RecordCount = 0 Then MsgBox \¿Õ¼Ç¼\End Else Adodc1.Recordset.MoveLast End If End Sub Private Sub Command7_Click() MDIForm1.Show frmtousu.Hide

End Sub

µ½ÕâÀ¸÷¸ö´°ÌåµÄ½çÃæºÍ´úÂë¶¼½éÉÜÍêÁË¡£·¢²¼ºó¿ÉÒÔ×÷Ϊһ¸öʵ¼ÊµÄÏîĿӦÓá£

Copyright 2007 www.zhujiangroad.com All Rights Reserved.

Ö齭·ÔÚÏß °æÈ¨ËùÓÐ ËÕICP±¸05016148ºÅ

¹ØÓÚÎÒÃÇ¹ã¸æ·þÎñ¸¶¿î·½Ê½ÄϾ©µØÍ¼ Ö齭·ÔÚÏßÍøÂçµç»°£º84065370 ´«Õ棺86983769 QQ£º58667443 ¹ã¸æ£º13813822567