Thanks for that Pat. You mention creating a single field table. What would I call that field?
My last bit of code is
MsgBox "Select * from tblCert " & (" where " + Mid(where, 6) & ";")
Set QD = db.CreateQueryDef("Dynamic_Query", _
"Select * from tblCert " & (" where " + Mid(where, 6) & ";"))
DoCmd.OpenQuery "Dynamic_Query"
End Sub
Where exactly would I put the code you mention?
Thanks