Private Sub wjbh_AfterUpdate()
Me.th = DLookup("[newth]", "查询1")
End Sub
Private Sub 保存_Click()
Dim sql As String
DoCmd.SetWarnings no
If Not (IsNull(Me.wjbh)) Then
sql = "INSERT INTO tblbz_FH ( th, wjbh ) "
sql = sql + "SELECT Forms!窗体1!th AS th, [Forms]![窗体1]![wjbh] AS wjbh;"
DoCmd.RunSQL sql
Me.窗体2.Form.Requery
Me.th = DLookup("[newth]", "查询1")
End If
End Sub