vbaprogammer
Programmer
I have created a report layout to display the number of times an answer (A, B, C, or D) are given to a particular question in a set of questions 1 to 20, multiple records.<br>
<br>
Sample desired layout:<br>
.........A....B....C....D<br>
Q1.......16...2....1....3<br>
Q2........9...2...16....5<br>
etc.<br>
<br>
Input screen:<br>
<br>
Q1....___....Q2....___....Q3....___ etc.<br>
<br>
I can get counts using Query<br>
Q1.........Q1<br>
DB1........DB1<br>
Group by...Count<br>
<br>
which produces<br>
<br>
Question 1 (dummy numbers)<br>
A....19<br>
B.....2<br>
C.....5<br>
D.....1<br>
<br>
I need the counts for multiple questions. Even though the query provides the counts for A, B ..., I can't extract them into the format desired.<br>
<br>
I also need them to display in the report as indicated above ('cause the client likes it).<br>
<br>
I can create some unsatisfactory results with one record and one question, but I can't figure out how to get the counts parsed so I can spread them across the page.<br>
<br>
So,<br>
<br>
Say 20 participants in the test<br>
20 questions<br>
<br>
.............A....B.....C....D<br>
Question 1...5....8.....2....5<br>
Question 2...3....9.....9....4<br>
Question 3...0...20.....0....0<br>
...<br>
Question 20 ...<br>
<br>
I have spent two days on this, and am suffering from serious "senior moments" and brain drain. Can anyone put me on the right track? Would appreciate it.<br>
<br>
Dan<br>
<br>
Sample desired layout:<br>
.........A....B....C....D<br>
Q1.......16...2....1....3<br>
Q2........9...2...16....5<br>
etc.<br>
<br>
Input screen:<br>
<br>
Q1....___....Q2....___....Q3....___ etc.<br>
<br>
I can get counts using Query<br>
Q1.........Q1<br>
DB1........DB1<br>
Group by...Count<br>
<br>
which produces<br>
<br>
Question 1 (dummy numbers)<br>
A....19<br>
B.....2<br>
C.....5<br>
D.....1<br>
<br>
I need the counts for multiple questions. Even though the query provides the counts for A, B ..., I can't extract them into the format desired.<br>
<br>
I also need them to display in the report as indicated above ('cause the client likes it).<br>
<br>
I can create some unsatisfactory results with one record and one question, but I can't figure out how to get the counts parsed so I can spread them across the page.<br>
<br>
So,<br>
<br>
Say 20 participants in the test<br>
20 questions<br>
<br>
.............A....B.....C....D<br>
Question 1...5....8.....2....5<br>
Question 2...3....9.....9....4<br>
Question 3...0...20.....0....0<br>
...<br>
Question 20 ...<br>
<br>
I have spent two days on this, and am suffering from serious "senior moments" and brain drain. Can anyone put me on the right track? Would appreciate it.<br>
<br>
Dan<br>