Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8962925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:14:43+00:00 2026-06-15T16:14:43+00:00

I am using MS Access 2007. I am collecting data of different types of

  • 0

I am using MS Access 2007.

I am collecting data of different types of businesses within a town area, arranged by streets, the business.

In TableA, I have a list of different specific streets, no duplicates, field: Street; and another, field: NumOfBusinesses.

In TableB, I have a list of different specific businesses, Business; and what street they are on, Street.

eg

TableA

STREET..................NUMOFBUSINESSES

High Street
Sheep Street
Silver Street
Gold Street

TableB

BUSINESS................STREET

McD's                    High Street
Hair Dresser             High Street
Shoeshop                 Gold Street

What I want to be able to do, is count the amount of business per street from TableB and add that into the TableA, corresponding to each street.

I have over 600 streets, so I don’t want to have to manually go through each individual count and add it in manually.

Is there a type of query I can use, or even code I could put in as the default value of the “Num…sses” field, so it dynamically changes the query depending on the relevant street in the record?

So in essence, I want TableA to look like this automatically

TableA

STREET..................NUMOFBUSINESSES

High Street             2
Sheep Street            0
Silver Street           0
Gold Street             1
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T16:14:44+00:00Added an answer on June 15, 2026 at 4:14 pm

    You can get the results from a query, so do you really need to update a field?

    SELECT Tablea.Street, Count(Business) 
    FROM TableA 
    INNER JOIN Tableb
    ON TableA.Street = TableB.Street
    GROUP BY Tablea.Street
    

    It is not usually recommended that you store calculated data.

    If you really must store the count, you can say:

    UPDATE tablea 
    SET numofbusinesses=
       DCount("*","tableb","street='" & Replace(street,"'","''") & "'")
    WHERE Street Is Not Null
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I wrote a project-management program for a small business using Microsoft Access 2007.
Im using Access 2007 to import statistics (Excel) from multiple units within a department.
I am using Access 2007 and creating an invoicing system for my parent's business.
I am using Access 2007 with a pass-through query. The data values that I
I'm using MS Access 2007 for insert and read data in my application but
I am using Microsoft Access 2007 to move and massage some data between two
I have the following problem in a Database using Access 2007 as front end
I've posted a demo Access db at http://www.derekbeck.com/Database0.accdb . I'm using Access 2007. I
Background info : I was handed a Tool, which was made using MS-Access 2007,
I have problem creating new instance of excel 2007 using VBA (from Access 2002).

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.