Hi,
I am using DCount on my search form, and I have three criteria search in two tables. But I don’t know how to do it, I put the following code and it isn’t work.
If DCount(“*”, “table1”, “client information”, “[PO]=Forms!frmSearchClient!PO OR [Name]=Forms!frmSearchClient!Name”) = 0 Then
MsgBox “No records matching the criteria you chose, please try it again.”, vbInformation
DoCmd.Close
DoCmd.OpenForm “frmSearchClient”
Also if the criteria that user enter is not finding in the db, I would like clean the crieria and let use try it again. Currently I use reopen the search form and I don’t know if there’s better way to do it.
Regards