I am trying to track down a problem I am having with an unbound form that generates reports based on various saved queries. The specific problem is that reports filtered on CommitteeName are producing the Message that “There are no rows to display” even though there are records. The report gets its records from the union query below which generates them just fine. Obviously there is a breakdown filtering the stuff from the union query. This is happening in VBA.
Here is the current question in my troubleshooting:
I have noticed that the following union query produces the column name Exp1003 instead of CommitteeName for the fourth column. Does it matter/do I care? Or should I keep looking for another solution to the problem? I have seen this sort of thing appear in regular queries when a column gets added in twice. I cannot for the life of me figure out why Access is doing it in this instance.
SELECT IndividualID, IndName, EnvelopeNumber, null, Age, Address1, Address2, HomePhone, HomeEmail, BusinessPhone, BusinessEmail, FamilySortName as ParentOrDescription
FROM qryBasicIndInformation
UNION SELECT IndividualID, IndName, EnvelopeNumber, CommitteeName, null, Address1, Address2, HomePhone, HomeEmail, BusinessPhone, BusinessEmail, Position as ParentOrDescription
FROM [qryCommittee Lists]
ORDER BY IndName;