Private Sub Command3_Click()
If Check4.Value = False Then
Me.RecordSource = "select * from 表1 where 客户名称 like '*" & Text1 & "*'"
Check4.Value = True
Else
DoCmd.GoToRecord , , acNext
End If
End Sub
Private Sub Form_Load()
Check4 = False
Me.RecordSource = "select * from 表1 "
Command3.Default = True
End Sub