老师,我窗体上有一个保存按钮,我想按快捷键 F3 然后再全局表 KeyDown
If e.KeyCode = Keys.F3 Then
If Tables("feiyongMX").current Is Nothing Then
Tables("feiyongTB").current.delete
Else
Tables("feiyongTB").current.save
For Each r As Row In Tables("feiyongMX").Rows
r.save
Next
Tables("feiyongTB").current.save
'DataTables("feiyongMX").save
End If
Tables("feiyongTB").AllowEdit=False
MessageBox.show("保存成功","提示")
e.form.close
End If
点,按钮可以执行,把代码写在这里,怎么不起作用呢