# 请帮我修正,那里错误??谢谢

Posted by 洪 on July 27, 1999 at 14:24:31:

在DataGrid,按ENTER移到下一笔
IF 最后一笔,新增

Private Sub DataGrid1_KeyUp(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 And (Not Adodc1.Recordset.EOF) Then
Adodc1.Recordset.MoveNext
If Adodc1.Recordset.EOF Then
Adodc1.Recordset.AddNew
Adodc1.Recordset("性别") ="男" ''***DataGrid1参数错误****
Adodc1.Recordset.Update
End If
END IF
End Sub

Follow Ups:

- Re: 请帮我修正,那里错误??谢谢 小琳 20:32:29 7/28/99 (1)
  - 不管有无结果,谢谢个位的热心帮助!!! 洪 21:32:46 7/28/99 (0)
- Re: 请帮我修正,那里错误??谢谢 小琳 20:31:34 7/28/99 (0)
- Re: 请帮我修正,那里错误??谢谢 小琳 21:10:14 7/27/99 (1)
  - Re: 确定性别栏位是字元. 洪 23:41:57 7/27/99 (0)