I'm quite new to SQL and coding generally.
I have a SQL query that works fine. All I want to do now is return the number of rows from that query result.
The current SQL query is:
SELECT
Progress.UserID, Questions.[Question Location],
Questions.[Correct Answer], Questions.[False Answer 1],
Questions.[False Answer 2], Questions.[False Answer 3]
FROM
Questions
INNER JOIN
Progress ON Questions.[QuestionID] = Progress.[QuestionID]
WHERE
(((Progress.UserID) = 1) AND
((Progress.Status) <> "Correct")
);
I know I need to use
SELECT COUNT(*)
...though not quite sure how I integrate it into the query.
I then intend to use OLEDB to return the result to a VB Windows Form App.
All help is much appreciated.
Thanks! Joe