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, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
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
-
Excel Macro — ask for filename to be saved
by
nhsj
7 hours, 46 minutes ago -
Trying to backup Win 10 computer to iCloud
by
SheltieMom
15 hours, 15 minutes ago -
Windows 11 Insider Preview build 26200.5570 released to DEV
by
joep517
1 day, 5 hours ago -
Windows 11 Insider Preview build 26120.3941 (24H2) released to BETA
by
joep517
1 day, 6 hours ago -
Windows 11 Insider Preview Build 22635.5305 (23H2) released to BETA
by
joep517
1 day, 6 hours ago -
No April cumulative update for Win 11 23H2?
by
Peobody
1 day, 9 hours ago -
AugLoop.All (TEST Augmentation Loop MSIT)
by
LarryK
1 day, 7 hours ago -
Boot Sequence for Dell Optiplex 7070 Tower
by
Serge Carniol
1 day, 22 hours ago -
OTT Upgrade Windows 11 to 24H2 on Unsupported Hardware
by
bbearren
2 days, 1 hour ago -
Inetpub can be tricked
by
Susan Bradley
9 hours, 26 minutes ago -
How merge Outlook 2016 .pst file w/into newly created Outlook 2024 install .pst?
by
Tex265
19 hours, 54 minutes ago -
FBI 2024 Internet Crime Report
by
Alex5723
2 days, 5 hours ago -
Perplexity CEO says its browser will track everything users do online
by
Alex5723
1 day, 17 hours ago -
Login issues with Windows Hello
by
CWBillow
2 days, 16 hours ago -
How to get into a manual setup screen in 2024 Outlook classic?
by
Tex265
2 days, 4 hours ago -
Linux : ARMO rootkit “Curing”
by
Alex5723
3 days, 4 hours ago -
Employee monitoring app leaks 21 million screenshots in real time
by
Alex5723
3 days, 4 hours ago -
Google AI is now hallucinating idioms
by
Alex5723
3 days, 5 hours ago -
april update
by
69800
1 day, 9 hours ago -
Windows 11 Insider Preview build 27842 released to Canary
by
joep517
3 days, 5 hours ago -
Quick Fix for Slowing File Explorer
by
Drcard:))
3 days, 6 hours ago -
WuMgr not loading?
by
LHiggins
2 days, 1 hour ago -
Word crashes when accessing Help
by
CWBillow
12 hours, 50 minutes ago -
New Microsoft Nag — Danger! Danger! sign-in to your Microsoft Account
by
EricB
3 days, 5 hours ago -
Blank Inetpub folder
by
Susan Bradley
3 days, 3 hours ago -
Google : Extended Repair Program for Pixel 7a
by
Alex5723
3 days, 16 hours ago -
Updates seem to have broken Microsoft Edge
by
rebop2020
3 days, 2 hours ago -
Wait command?
by
CWBillow
3 days, 9 hours ago -
Malwarebytes 5 Free version manual platform updates
by
Bob99
3 days, 22 hours ago -
inetpub : Microsoft’s patch for CVE-2025–21204 introduces vulnerability
by
Alex5723
4 days, 5 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.