Hi,
Let me start with some background of what I am trying to accomplish. Basically, I have a table that keeps track of votes for people in three columns, and the votes are given a category from 1 to 13. Now, there are two types of votes, with some of the numbers falling into one, others into another, and I am trying to get a count of these two types in a report by using a report module.
So I have my SQL query in my VBA module (using ADO) and it reads in the ID number of the person, but it keeps giving me a zero instead of the correct number. I then proceeded to cut and paste the SQL query it generated into a regular Access query, and it worked. Does anybody know if there is some sort of bug that would prevent a count query from working correctly in code, but not in a query? I can post the SQL statement if more information is needed.
Many thanks,
I. Kinal
Let me start with some background of what I am trying to accomplish. Basically, I have a table that keeps track of votes for people in three columns, and the votes are given a category from 1 to 13. Now, there are two types of votes, with some of the numbers falling into one, others into another, and I am trying to get a count of these two types in a report by using a report module.
So I have my SQL query in my VBA module (using ADO) and it reads in the ID number of the person, but it keeps giving me a zero instead of the correct number. I then proceeded to cut and paste the SQL query it generated into a regular Access query, and it worked. Does anybody know if there is some sort of bug that would prevent a count query from working correctly in code, but not in a query? I can post the SQL statement if more information is needed.
Many thanks,
I. Kinal