Hello all,
I'm having a little trouble getting my queries to work for creating a graph in a report. If anyone can point me in the right direction, I'd really appreciate it. Here's my scenario:
I have a form that inputs dates for the data to be graphed (I can get this part to work). The query then lists all the entries, and my crosstab query counts up the entries and is used to display them in the graph (also works). My problem is, the form also has a checkbox that, when checked, needs to count up the entries in another table (for that date range) and subtract these from the the count of the first table. My problem is that I can't figure out a way to subtract them. A crosstab query won't let me use expressions like that. Do I have to use another select query to relate the two crosstab queries? Is that even possible?
A general answer of what kind of queries I need should be a good enough answer to get me rolling in the right direction. I hope someone can help!
Thanks in advance,
Ryan
I'm having a little trouble getting my queries to work for creating a graph in a report. If anyone can point me in the right direction, I'd really appreciate it. Here's my scenario:
I have a form that inputs dates for the data to be graphed (I can get this part to work). The query then lists all the entries, and my crosstab query counts up the entries and is used to display them in the graph (also works). My problem is, the form also has a checkbox that, when checked, needs to count up the entries in another table (for that date range) and subtract these from the the count of the first table. My problem is that I can't figure out a way to subtract them. A crosstab query won't let me use expressions like that. Do I have to use another select query to relate the two crosstab queries? Is that even possible?
A general answer of what kind of queries I need should be a good enough answer to get me rolling in the right direction. I hope someone can help!
Thanks in advance,
Ryan