Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access RecordCount into index page

Status
Not open for further replies.

potinenip

Programmer
Jul 12, 2000
35
US
Hi <br>I have a problem. I want to access the number of houses in texas from my &quot;property&quot; table and display the recordcount besides Texas which is in the index page(main page).<br>example:<br>missouri(26)<br>Texas(15)<br><br>I want to display 15 beside texas.<br><br>can somebody help me with that. <br>Thanks<br>Praveen
 
SELECT&nbsp;&nbsp;&nbsp;&nbsp;distinct city, (select count(*) as total from companies where city = c.city)<br>FROM&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;companies AS c<br><br>If your not using Access then you may need to remove AS to assign the alias.<br><br><br><br><br> <p>Russ Michaels<br><a href=mailto:russ@satachi.com>russ@satachi.com</a><br><a href= Internet Development</a><br>For my personal book recommendations visit <br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top