thegameoflife
Programmer
How do i add a wild card search on txtprovname ???
Code:
where = Null
where = where & " AND [Member_Name] = '" + Me!txtmembername + "'"
where = where & " AND [Provider_Name] = '" + Me![txtprovname] + "'"
where = where & " AND [Member_Num] = '" + Me![txtmembernum] + "'"
where = where & " AND [Claim_Num] = '" + Me![txtclaim] + "'"
where = where & " AND [Tax_ID] = '" + Me![txtTaxid] + "'"
where = where & " AND [Provider_Num] = '" + Me![txtprovidernum] + "'"
Set QD = db.CreateQueryDef("Dynamic_Query", _
"Select * from Tbl_Aus_History " & (" where " & Mid(where, 6) & ";"))
Me.Frm_Search_Subform.Form.RecordSource = "Dynamic_Query"