Private Sub Image14_Click()
If Nz(Me.Text12) <> "" Then
If IsNull(DLookup("cm", "main", "cm like '*" & Me.Text12 & "*'")) Then
MsgBox "没有包含有" & Me.Text12 & "的成语"
Me.Text12 = ""
Exit Sub
Else
Me.RecordSource = "select * from main where CM LIKE '*" & Me.Text12 & "*'"
End If
Else
Me.RecordSource = "main" '如果TEXT12为空
End If
Me.Text12 = ""
Set Me!sub.Form.Recordset = Me.Recordset
Me.Requery
Me!sub.SetFocus
Me.sub.Form.CM.SelLength = 0
End Sub