Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
Set cn = CurrentProject.Connection
Set rs = New ADODB.Recordset
rs.Open "MyQuery", cn, adOpenStatic, adLockReadOnly
MsgBox rs.RecordCount
Set rs = Nothing
Set cn = Nothing
and the value is null? - In the query you can put, as a criteria, the following:
[Forms]![FSearch]![Text1] OR [Forms]![FSearch]![Text1] Is Null
or worse not enabled?
I don't see what a textbox's Enabled property has to do with anything. If it wasn't enabled and you wanted the .Text property is the only problem I can see.