Public Function Search_All(srchSTR as String, Yourcolumn as String)<br>
Dim qdf as Querydef<br>
Dim tdf As TableDef<br>
Dim wsp As Workspace<br>
Dim dbData As Database<br>
Dim rst As Recordset<br>
Dim i As Long<br>
Set dbData = CurrentDb<br>
On Error Resume Next<br>
With dbData<br>
For Each tdf In .TableDefs<br>
strSQL = "Select * from " & tdf.Name & " where " & Yourcolumn & " = " & srchSTR & ";"<br>
Set rst = dbData.OpenRecordset(strSQL, dbOpenSnapShot)<br>
With rst<br>
If Not (.BOF And .EOF) Then<br>
'there are records in the recordset<br>
intCount = .RecordCount<br>
.MoveFirst<br>
' rest of code to manipulate the record goes here<br>
' use dynaset for updateable recordset<br>
' Or you can build a querydef here <br>
'<br>
Set qdf = dbs.CreateQueryDef("qry_OnFly", strSQL) <br>
exit ' quit while you're ahead<br>
end if<br>
end with<br>
<br>
Next tdf<br>
End With<br>
End Function<br>
<br>
Hope this helps a little--I didn't debug the code but you should get the general idea.<br>
<br>