Hello its me again *LOL* my problem is that the search I have can do only full or none *LOL* I want to be able to type in just some of the name and then get the record I want here is the code I have so far:<br><br>'Get the a reference to the field in the table/Query as<br> 'we'll need it for BuildCriteria later on<br> If Me.lstTables.Column(1) = "Table" Then<br> Set tdf = db.TableDefs(Me.lstTables.Column(0))<br> Set fld = tdf.Fields(Me("cbxFld" & i))<br> Else<br> Set rsQdf = db.OpenRecordset( _<br> "Select Transctipt_Diploma_Requests from [" & Me.lstTables.Column(0) & "] Where 1=2", dbOpenSnapshot)<br> Set fld = rsQdf.Fields(Me("cbxFld" & i))<br> End If<br> <br> 'Only build a criteria if something's typed in the textbox<br> 'otherwise assume all records<br> If Not IsNull(Me("txtVal" & i)) Then<br> strWhere = strWhere & strJoinType & Application.BuildCriteria( _<br> "[" & Me("cbxFld" & i) & "]", _<br> fld.Type, Me("txtVal" & i) & ""
<br> Else<br> strWhere = strWhere & strJoinType & "[" & Me("cbxFld" & i) & "] like '*'"<br> End If<br> <br> End If