Baldy
I have been trying your code. However, I have no success until now. I think for my little acknowledgment in programming.
As I said I have form (FSearch) as filter for a parameter query that when user enter data in textboxes, and click the button Find in FSearch the query run.
When there are records to show the qry works fine. Nevertheless, if there aren’t records, then it opens a form F as a blank form.
My nightmare is that when no records are found, how I can get a message to say “No records Found” and then opening FFind after pressing Ok.
I have been testing the code
Private Sub cmdSearch_Click()
Dim strSQL As String
Dim db As DAO.Database
Dim rs As DAO.Recordset
strSQL = "SELECT * FROM QFind"
Set db = CurrentDb
Set rs = db.OpenRecordset(strSQL)
If Me.RecordsetClone.RecordCount = 0 Then
MsgBox "No Records!"
DoCmd.Close acForm, Me.Name
DoCmd.OpenForm "FFind", acViewNormal
End If
End Sub
In Access help I read this code
Public Sub GetOrders()
Dim dbs As DAO.Database
Dim qdf As DAO.QueryDef
Dim strSQL As String
Set dbs = CurrentDb
strSQL = "SELECT * FROM Orders WHERE OrderDate >#3-31-2006#;"
Set qdf = dbs.CreateQueryDef("SecondQuarter", strSQL)
End Sub

Unfortunately I have a Quey not a Table as in the above example. I also don’t know what means QueryDef and how to use the clauses Where.
My problem is that anytime I enter data and click the search button the code stops and the line srtSQL="SELECT * FROM QFind" is colored in yellow. I don’t know what I have to write after FROM. I tried the qry´s SQL but again no success.
I check from the Access Help
Could you point me in the right direction?
Thanks again