Hi all,
I have an unbound form that i am using to open a report.Has a combo on it that populates with HelperValues from a table. I want to add an "All" to the combo so that it will put all the records on that form to my report.
The after update event is:
Code:
Private Sub CboMemberRoleSelect_AfterUpdate()
DoCmd.OpenReport "Report2", acViewPreview, , "MemberRoleID=" & Me.CboMemberRoleSelect
DoCmd.Close acForm, Me.Name
End Sub
The RowSource is:
Code:
SELECT HelperID, HelperTypeID,HelperValue FROM tblHelper UNION SELECT 0, '(All)' FROM tblHelper WHERE HelperTypeID=14 ORDER BY [HelperValue];
Error is:
The number of columns in the two selected tables or queries of a union query do not match
Without the UNION SELECT 0, '(All)' FROM tblHelper in the rowsource I can select the HelperValue i want and it opens the report just fine to that specific selection. I want to add the "All" so that it will
open report to all of the helpervalues....not just one.
Hope this makes some sense,
Thanks
Dave