Simple Row Count Of Table

  • Thread starter Thread starter ellisplace
  • Start date Start date
E

ellisplace

I have an Mp3 database which compiles a list of the ID3 tag data and
sorts it appropriately. I have created a form which searches within the
table for the keyword you put in. I want to put some text on this form
to say how many tracks there are currently in the database.

Nothing fancy just want it to read the number of rows within my table
and return that value onto the form itself as text.

I tried finding a solution myself but I am not skilled at all when it
comes to Access.

Any help will be greatly appreciated.
 
Create a totals query that gives you the number. In your form add an
unbound textbox. Enter the query as Control Source.
 
Either that, or set the Control Source of the unbound textbox to
=DCount("*", "MyTable")

(Replace MyTable with the actual table name. Include the = sign)
 

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

Count Results 2
Union and group, then count 1
Count Results in Access 97 8
Count Dates 7
Simple Report Question 7
Pulling data from a linked SQL table 2
Delete rows in different tables 7
Copy hyperlinks 6

Back
Top