msflexgrid中某一字段的内容我会经常修改,在msflexgrid上我能够实现,但当我试图保存到记录集中时,为何总是第一条记录被更改,要使用游标将当前记录指针移到更改的那条记录吗?怎样使用游标。
我的代码:'form2中COMMANDBUTTON
Private Sub Command1_Click()
 With Form3.MSFlexGrid1
  .TextMatrix(.Row, 6) = Check1.Value - 1
    Form3.Data1.Recordset.Edit
   
    
       
      
     
       Form3.Data1.Recordset.Fields(6) = Form3.MSFlexGrid1.TextMatrix(.Row, 6)
       
       Form3.Data1.Recordset.Update
        
    
      
    
       
   
 
  
  End With
  
  Unload Me
End Sub