>This question is hard to explain but basically im getting a runtime error#13
>at the bottom where it says: "if strng then". Idk if thats proper syntax or
[quoted text clipped - 52 lines]
> find.MoveNext
> Loop
The If condition needs to be a comparison that results in a
true or false. You are trying to use a string.
Aside from your question, the loop doesn't seem to make
sense to me, maybe there's more code that does something
unusual with the array???
Generally, you should use the criteria string in the
OpenRecordset's query The way you have it is backwards (or
missing a bunch of logic).
Note that "Name" and "Find" are terrible names for tables or
anything else.
Your use of ! in the criteria string is either woring or you
have somthing else wrong.
It also appears that you are using check boxes to indicate
that a criteria should be used. This is unecessary because
it is easy to check if the criteria control has a value or
not. I use code like this:
If Not IsNull(cboDegree) Then
strWhere = " AND fldDegree = """ & Me.cboDegree & """"
End If
If Not IsNull(txtYrs) Then
strWhere = " AND fldYrs = " & Me.txtYrs
End If
. . .
strSQL = SELECT & FROM Name WHERE " & Mid(strWhere, 6)
Set find = CurrentDb.OpenRecordset(strSQL, dbOpenDynaset)

Signature
Marsh
MVP [MS Access]