Well, I'm not using code. I'm using an access query as the record source for my subform. The query is set up with the criteria matching the fields on the main form.
The problem is that when I requery the subform, it doesn't seem to go thru any of the events in the subform because no data is returned.
So, I'd like to check the subform from the search button on the mainform after the requery, but I can't figure out what to look at in the subform to determine that no records were returned.
If it helps, the sql code behind the query is:
SELECT tblPolicyMaster.PolicyNumber, tblPolicyMaster.PolicySuffix, tblPolicyMaster.RecordType, tblPolicyMaster.PolicyBranch, tblPolicyMaster.IssDeclineInd, tblPolicyMaster.CaseHeadOffice, tblPolicyMaster.CaseNumber, tblPolicyMaster.WriteTimestampDate, tblPolicyMaster.WriteTimestampTime, tblPolicyMaster.PrevPolNo, tblPolicyMaster.PrevPolSuffix, tblPolicyMaster.PrevRecordType, tblPolicyMaster.PrevIssueDate, tblPolicyMaster.PrevIssueAge, tblPolicyMaster.PrevPlanCode, tblPolicyMaster.PrevFaceAmount, tblPolicyMaster.HeadOfficeCode, tblPolicyMaster.PolAccount, tblPolicyMaster.AgreePrintInd, tblPolicyMaster.PlanCodeLiteral, tblPolicyMaster.ReinsuranceType, tblPolicyMaster.CompanyCode, tblPolicyMaster.InsuredLastName, tblPolicyMaster.InsuredFirstName, tblPolicyMaster.InsuredMiddleName, tblPolicyMaster.CessionStatusInd, tblPolicyMaster.AdminDiscrepancyInd, tblPolicyMaster.PurrChangeDate, tblPolicyMaster.PolicyStatus, tblPolicyMaster.PolicyStatusDate, tblPolicyMaster.PlanCode, tblPolicyMaster.OrigRatingClass, tblPolicyMaster.AgreePrintCtr, tblPolicyMaster.UlaUl2TradPolicyStatus, tblPolicyMaster.NaarEntryType, tblPolicyMaster.ReinDeathDate, tblPolicyMaster.ReinPaidToDate, tblPolicyMaster.LobSubsegment, tblPolicyMaster.AbrInd, tblPolicyMaster.LtcrInd, tblPolicyMaster.NfAmount, tblPolicyMaster.ReinstatementDate, tblPolicyMaster.TerminationDate, tblPolicyMaster.FirLtrDuration, tblPolicyMaster.LoadInd, tblPolicyMaster.GerGrr, tblPolicyMaster.CessionsCtr
FROM tblPolicyMaster
WHERE (((tblPolicyMaster.PolicyNumber) Like [Forms]![frmPolicyNoSearch]![PolicyNumber] Or (tblPolicyMaster.PolicyNumber)=[Forms]![frmPolicyNoSearch]![PolicyNumber]) AND ((tblPolicyMaster.PolicySuffix) Like [Forms]![frmPolicyNoSearch]![Suffix] Or (tblPolicyMaster.PolicySuffix)=[Forms]![frmPolicyNoSearch]![Suffix]));