Numbering

  • Thread starter Thread starter JA
  • Start date Start date
J

JA

I have a group query:

SELECT Course.course_code, Course.course_name, Count
(Course.ID) AS CountOfID
FROM Course
GROUP BY Course.course_code, Course.course_name;

Is there any way I can add a numbering field (using the
build wizard or any way)to give numbering to records.

Please advise.
 
I have a group query:

SELECT Course.course_code, Course.course_name, Count
(Course.ID) AS CountOfID
FROM Course
GROUP BY Course.course_code, Course.course_name;

Is there any way I can add a numbering field (using the
build wizard or any way)to give numbering to records.

Please advise.

It's very easy on a Report: just put a textbox on the report with a
Control Source of =1, and set its Running Sum property to "Over All".

In a Query it's a bit more work: you'll need to put in a calculated
field

DCount("*", "[your-query-name]", "[course_code] <= " & [course_code] &
" AND [course_name] <= '" & [course_name] & "'")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Create numbering 1
Add add number 3
Cross tab Question 1
Access Dcount (multiple criteria) 3
Access Compare records in same access table 0
Crosstab Zero Values 1
Cross Tab Query - Date Range fails 4
Report grouped totals not resetting. 2

Back
Top