Is there a way to autopopulate a form to update it to ever-changing data? Instance: One day, I have one record with a column containing the info: CC. Next day I have 8 records with the following; 2 with CC, 4 with NA, 1 with MM, and 1 with NC. I want my form to count those values, as well as saying what they are. What I’m trying to do is make a report that I can open and it will count all those and I can print it easily…..anyone understand the ‘jist’ of my question?
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Autopopulate form? (Office XP)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Autopopulate form? (Office XP)
- This topic has 24 replies, 2 voices, and was last updated 20 years, 4 months ago.
AuthorTopicWSNYIntensity
AskWoody LoungerDecember 4, 2004 at 12:10 am #413110Viewing 1 reply threadAuthorReplies-
WSHansV
AskWoody LoungerDecember 4, 2004 at 12:19 am #908753Investigate the concept of Totals queries. They are used to aggregate data: records are grouped on the unique values of one or more fields, and you can count, sum, average etc. other data.
– Create a query based on your table.
– Change it to a Totals query by selecting View | Totals or by clicking the Totals button on the toolbar.
– Add the field containing CC etc. to the query grid, and leave the Total option unchanged (Group By is the default)
– Add an arbitrary field, and set its Total option to Count.
– Switch to datasheet view to inspect the result.You can base a form and/or a report on this query. Note: because the query aggregates data, neither the query nor a form based on it are updatable.
-
WSNYIntensity
AskWoody Lounger -
WSHansV
AskWoody Lounger -
WSNYIntensity
AskWoody Lounger -
WSNYIntensity
AskWoody Lounger
-
-
WSHansV
AskWoody Lounger
-
-
WSNYIntensity
AskWoody Lounger -
WSNYIntensity
AskWoody LoungerDecember 4, 2004 at 1:02 am #908789HansV:
:::You can base a form and/or a report on this query. Note: because the query aggregates data, neither the query nor a form based on it are updatable.::::That’s why I’m asking about the update thing….you said in an earlier post that they’re not updatable…maybe I was mislead or I misread it…
-
WSHansV
AskWoody Lounger -
WSNYIntensity
AskWoody Lounger -
WSHansV
AskWoody LoungerDecember 4, 2004 at 1:30 am #908801That depends on how you populate your table. Does the CC from the first day get deleted on the second day? If so, it wouldn’t show up in the query on the second day. But if the records accumulate, you’d see the records for day one and day two. If you want to see only the records for the current day, you must use a where-condition – that’s why I asked if you only wanted to see the records for today, a few replies up in this thread.
Yes, there are several ways of putting a filter on a form. Look at Records | Filter. The submenu lists four options: Filter by Selection, Filter Excluding Selection, Filter by Form and Advanced Filter/Sort… Look up Filters, Create Filters in the online help for more info.
-
WSNYIntensity
AskWoody Lounger -
WSNYIntensity
AskWoody Lounger -
WSNYIntensity
AskWoody Lounger -
WSHansV
AskWoody LoungerDecember 4, 2004 at 2:33 am #908826There are several possibilities:
- You can use a quert as Record Source of the report, and put criteria in the query. These criteria can be dynamic:
- You can use a parameter prompt such as [Which Country] for a Country field; when you open the report, you will be asked to enter a country.
- You can also refer to a text box or other control on a form, e.g. [Forms]![frmSelect]![txtCountry].
[/list] - You can pass a where-condition to a report if you open it using code, for example from a command button on a form:
DoCmd.OpenReport “MyReport”, acViewPreview, , “Year = ” & Me.txtYear
- You can set and remove a filter for an already open report in VBA code. See ACC2000: How to Filter a Report from a Pop-Up Form (applies to other versions than Access 2000 too.)
[/list]There is no interactive filter option for reports, the way there is for forms. The last option mentioned above simulates it.
- You can use a quert as Record Source of the report, and put criteria in the query. These criteria can be dynamic:
-
WSHansV
AskWoody LoungerDecember 4, 2004 at 2:33 am #908827There are several possibilities:
- You can use a quert as Record Source of the report, and put criteria in the query. These criteria can be dynamic:
- You can use a parameter prompt such as [Which Country] for a Country field; when you open the report, you will be asked to enter a country.
- You can also refer to a text box or other control on a form, e.g. [Forms]![frmSelect]![txtCountry].
[/list] - You can pass a where-condition to a report if you open it using code, for example from a command button on a form:
DoCmd.OpenReport “MyReport”, acViewPreview, , “Year = ” & Me.txtYear
- You can set and remove a filter for an already open report in VBA code. See ACC2000: How to Filter a Report from a Pop-Up Form (applies to other versions than Access 2000 too.)
[/list]There is no interactive filter option for reports, the way there is for forms. The last option mentioned above simulates it.
- You can use a quert as Record Source of the report, and put criteria in the query. These criteria can be dynamic:
-
WSNYIntensity
AskWoody Lounger -
WSHansV
AskWoody LoungerDecember 4, 2004 at 1:30 am #908802That depends on how you populate your table. Does the CC from the first day get deleted on the second day? If so, it wouldn’t show up in the query on the second day. But if the records accumulate, you’d see the records for day one and day two. If you want to see only the records for the current day, you must use a where-condition – that’s why I asked if you only wanted to see the records for today, a few replies up in this thread.
Yes, there are several ways of putting a filter on a form. Look at Records | Filter. The submenu lists four options: Filter by Selection, Filter Excluding Selection, Filter by Form and Advanced Filter/Sort… Look up Filters, Create Filters in the online help for more info.
-
-
WSNYIntensity
AskWoody Lounger
-
-
WSHansV
AskWoody Lounger
-
-
WSNYIntensity
AskWoody LoungerDecember 4, 2004 at 1:02 am #908790HansV:
:::You can base a form and/or a report on this query. Note: because the query aggregates data, neither the query nor a form based on it are updatable.::::That’s why I’m asking about the update thing….you said in an earlier post that they’re not updatable…maybe I was mislead or I misread it…
-
-
WSHansV
AskWoody LoungerDecember 4, 2004 at 12:19 am #908754Investigate the concept of Totals queries. They are used to aggregate data: records are grouped on the unique values of one or more fields, and you can count, sum, average etc. other data.
– Create a query based on your table.
– Change it to a Totals query by selecting View | Totals or by clicking the Totals button on the toolbar.
– Add the field containing CC etc. to the query grid, and leave the Total option unchanged (Group By is the default)
– Add an arbitrary field, and set its Total option to Count.
– Switch to datasheet view to inspect the result.You can base a form and/or a report on this query. Note: because the query aggregates data, neither the query nor a form based on it are updatable.
Viewing 1 reply thread -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Windows 11 Insider Preview Build 22635.5170 (23H2) released to BETA
by
joep517
4 hours, 48 minutes ago -
Has the Microsoft Account Sharing Problem Been Fixed?
by
jknauth
8 hours, 14 minutes ago -
W11 24H2 – Susan Bradley
by
G Pickerell
10 hours, 9 minutes ago -
7 tips to get the most out of Windows 11
by
Alex5723
8 hours, 10 minutes ago -
Using Office apps with non-Microsoft cloud services
by
Peter Deegan
1 hour, 32 minutes ago -
I installed Windows 11 24H2
by
Will Fastie
5 hours, 12 minutes ago -
NotifyIcons — Put that System tray to work!
by
Deanna McElveen
13 hours, 36 minutes ago -
Decisions to be made before moving to Windows 11
by
Susan Bradley
32 minutes ago -
Port of Seattle says ransomware breach impacts 90,000 people
by
Nibbled To Death By Ducks
21 hours, 51 minutes ago -
Looking for personal finance software with budgeting capabilities
by
cellsee6
6 hours, 3 minutes ago -
ATT/Yahoo Secure Mail Key
by
Lil88reb
6 hours, 18 minutes ago -
Devices with apps using sprotect.sys driver might stop responding
by
Alex5723
1 day, 14 hours ago -
Neowin – 20 times computers embarrassed themselves with public BSODs and goofups
by
EP
1 day, 23 hours ago -
Slow Down in Windows 10 performance after March 2025 updates ??
by
arbrich
1 day, 1 hour ago -
Mail from certain domains not delivered to my outlook.com address
by
pumphouse
1 day, 7 hours ago -
Is data that is in OneDrive also taking up space on my computer?
by
WShollis1818
1 day, 18 hours ago -
Nvidia just fixed an AMD Linux bug
by
Alex5723
3 days, 10 hours ago -
50 years and counting
by
Susan Bradley
8 hours, 28 minutes ago -
Fix Bluetooth Device Failed to Delete in Windows Settings
by
Drcard:))
11 hours, 17 minutes ago -
Licensing and pricing updates for on-premises server products coming July 2025
by
Alex5723
3 days, 21 hours ago -
Edge : Deprecating window.external.getHostEnvironmentValue()
by
Alex5723
3 days, 21 hours ago -
Rethinking Extension Data Consent: Clarity, Consistency, and Control
by
Alex5723
3 days, 21 hours ago -
OneNote and MS Word 365
by
CWBillow
3 days, 23 hours ago -
Ultimate Mac Buyers Guide 2025: Which Mac is Right For You?
by
Alex5723
3 days, 23 hours ago -
Intel Unison support ends on Windows 11 in June
by
Alex5723
3 days, 23 hours ago -
April 2025 — still issues with AMD + 24H2
by
Kevin Jones
1 day, 15 hours ago -
Windows 11 Insider Preview build 26200.5518 released to DEV
by
joep517
4 days, 11 hours ago -
Windows 11 Insider Preview build 26120.3671 (24H2) released to BETA
by
joep517
4 days, 11 hours ago -
Forcing(or trying to) save Local Documents to OneDrive
by
PateWilliam
4 days, 20 hours ago -
Hotpatch for Windows client now available (Enterprise)
by
Alex5723
4 days, 8 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.