SELECT tblQuestionResponses.QuestionID, tblQuestionResponses.Gender,
Count(tblQuestionResponses.RespondentID) As TotalAnswers,
(tblQuestionResponses.RespondentID)/(Select Count(RespondentID) FROM
tblQuestionResponses As QR2 WHERE QR2.QuestionID =
[Forms]![MyForm]![QuestionSelected]) As [Percentage]
FROM tblQuestionResponses
WHERE tblQuestionResponses.QuestionID = [Forms]![MyForm]![QuestionSelected]
AND tblQuestionResponses.Gender = [Forms]![MyForm]![GenderSelected]
AND tblQuestionResponces.Answer = [Forms]![MyForm]![AnswerSelected]
GROUP BY tblQuestionResponses.QuestionID, tblQuestionResponses.Gender
You can also do it for all questions like this:
SELECT tblQuestionResponses.QuestionID, tblQuestionResponses.Gender,
Count(tblQuestionResponses.RespondentID) As TotalAnswers,
(tblQuestionResponses.RespondentID)/(Select Count(RespondentID) FROM
tblQuestionResponses As QR2 WHERE QR2.QuestionID =
tblQuestionResponses.QuestionID) As [Percentage]
FROM tblQuestionResponses
WHERE tblQuestionResponses.Gender = [Forms]![MyForm]![GenderSelected]
AND tblQuestionResponces.Answer = [Forms]![MyForm]![AnswerSelected]
GROUP BY tblQuestionResponses.QuestionID, tblQuestionResponses.Gender
--
John Viescas, author
"Microsoft Office Access 2003 Inside Out"
"Running Microsoft Access 2000"
"SQL Queries for Mere Mortals"
http://www.viescas.com/
(Microsoft Access MVP since 1993)