Private Sub Form_Load() recs = Adodc1.Recordset.RecordCount 'Çóµ±Ç°¼Ç¼Êý If recs > 0 Then 'ÒÑÓп¼Éú Adodc1.Recordset.MoveLast 'ÒƵ½×îºóÒ»Ìõ¼Ç¼ num = Val(Adodc1.Recordset.Fields("±¨ÃûºÅ")) 'Çó×îºóÒÔΪ¿¼Éú±¨ÃûºÅ Adodc1.Recordset.MoveFirst 'ÒƵ½¿ªÍ·¼Ç¼ Else num = 0 'ûÓп¼ÉúÊÇ£¬ÏÂÒ»¸ö±¨ÃûºÅ´Ó0+1=1¿ªÊ¼ End If End SubʲôÎÊÌâ°¡£¿ Private Sub Form_Load() recs = Adodc1.Recordset.RecordCount ¾ÍÊÇÕâÀïËü»áÌáʾ¶ÔÏó»òwith±äÁ¿¿ìδÉèÖà If recs > 0 Then 'ÒÑÓп¼Éú Adodc1.Recordset.MoveLast 'ÒƵ½×îºóÒ»Ìõ¼Ç¼ num = Val(Adodc1.Recordset.Fields("±¨ÃûºÅ")) 'Çó×îºóÒÔΪ¿¼Éú±¨ÃûºÅ Adodc1.Recordset.MoveFirst 'ÒƵ½¿ªÍ·¼Ç¼ Else num = 0 'ûÓп¼ÉúÊÇ£¬ÏÂÒ»¸ö±¨ÃûºÅ´Ó0+1=1¿ªÊ¼ End If End Sub Ìí¼ÓAdodc1¿Ø¼þ ¹¤³Ì——¡µ¿Ø¼þ——¡µmicrosoft ado data control6.0 ¹¤³Ì——¡µ²¿¼þ——¡µmicrosoft ado data control6.0 ÒѾÌí¼ÓÁË°¡¡£¡£ÊDz»ÊǺÍÊý¾Ý¿âµÄÁ¬½ÓÓÐÎÊÌâ°¡£¿£¿£¿
°ïÎÒ¸Ä¸Ä ÎÒ×ܾõµÃÓÐÎÊÌâ Type ID number As Single score As Integer name As String * 6 End Type Dim personl As ID, i% Private Sub Command1_Click() i = 0 &nbs ......