I have created a form containing a subreport that lists records with the fields vendor number, beginning date, and ending date. Some of the records do not have an ending date. My current query returns all records by vendor number. What I'm attempting to do is place a check box on the form that will allow the user to limit the query to only those records that do not have an ending date.
My current direction has been to create a subroutine that checks whether or not the box is checked on the form (If [checkbox] = true then...else...), then use that subroutine to change the criteria on my "ending date" field in the query. I keep getting a "query too complex" error when I attempt to do this.
Am I going about this the wrong way?
Thanks in advance.
My current direction has been to create a subroutine that checks whether or not the box is checked on the form (If [checkbox] = true then...else...), then use that subroutine to change the criteria on my "ending date" field in the query. I keep getting a "query too complex" error when I attempt to do this.
Am I going about this the wrong way?
Thanks in advance.