'保存按钮
Private Sub cmdSave_Click()
On Error GoTo ErrorHandler
Dim strSql As String
Dim cn As Object
Dim rs As Object
'【事务处理】
Set cn = CurrentProject.Connection
cn.BeginTrans '开始事务
'【保存数据】
strSql = "Select * from [Tbl_BuyPOTmp]"
Set rs = gf_OpenRecordset(strSql, cn, 1, 3)
If rs.EOF = False Then
Dim strMessage As String: strMessage = gf_GetLangValue("Are you sure to Save?")
If Not gf_Msgbox(strMessage, vbExclamation + vbOKCancel) = vbOK Then Exit Sub