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 LoungerWSNYIntensity
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 LoungerWSNYIntensity
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
-
Uninstalr Updates
by
jv16
2 hours, 14 minutes ago -
Apple zero days for April
by
Susan Bradley
4 hours, 59 minutes ago -
CVE program gets last-minute funding from CISA – and maybe a new home
by
Nibbled To Death By Ducks
3 hours, 1 minute ago -
Whistleblower describes DOGE IT dept rumpus at America’s labor watchdog
by
Nibbled To Death By Ducks
14 hours, 51 minutes ago -
Seeing BSOD’s on 24H2?
by
Susan Bradley
1 hour, 10 minutes ago -
TUT For Private Llama LLM, Local Installation and Isolated from the Internet.
by
bbearren
5 hours, 15 minutes ago -
Upgrade from Windows 10 to 11
by
Holdsworth8
23 hours, 31 minutes ago -
Microsoft : AI-powered deception: Emerging fraud threats and countermeasures
by
Alex5723
1 day, 2 hours ago -
0patch
by
WSjcgc50
3 hours, 19 minutes ago -
Devices might encounter blue screen exception with the recent Windows updates
by
Susan Bradley
19 hours, 43 minutes ago -
Windows 11 Insider Preview Build 22631.5261 (23H2) released to Release Preview
by
joep517
1 day, 5 hours ago -
Problem opening image attachments
by
RobertG
1 day, 6 hours ago -
advice for setting up a new windows computer
by
routtco1001
1 day, 21 hours ago -
It’s Identity Theft Day!
by
Susan Bradley
1 day, 1 hour ago -
Android 15 require minimum 32GB of storage
by
Alex5723
2 days, 2 hours ago -
Mac Mini 2018, iPhone 6s 2015 Are Now Vintage
by
Alex5723
2 days, 2 hours ago -
Hertz says hackers stole customer credit card and driver’s license data
by
Alex5723
2 days, 3 hours ago -
Firefox became sluggish
by
Rick Corbett
2 days ago -
Windows 10 Build 19045.5794 (22H2) to Release Preview Channel
by
joep517
2 days, 7 hours ago -
Windows 11 Insider Preview Build 22635.5235 (23H2) released to BETA
by
joep517
2 days, 7 hours ago -
A Funny Thing Happened on the Way to the Forum
by
bbearren
1 day, 4 hours ago -
Download speeds only 0.3Mbps after 24H2 upgrade on WiFi and Ethernet
by
John
1 hour, 46 minutes ago -
T-Mobile 5G Wireless Internet
by
WSmmi16
1 day, 5 hours ago -
Clock missing above calendar in Windows 10
by
WSCape Sand
1 day, 6 hours ago -
Formula to Calculate Q1, Q2, Q3, or Q4 of the Year?
by
WSJon5
2 days, 22 hours ago -
The time has come for AI-generated art
by
Catherine Barrett
2 days, 2 hours ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
2 days, 12 hours ago -
23 and you
by
Max Stul Oppenheimer
2 days, 19 hours ago -
April’s deluge of patches
by
Susan Bradley
23 hours, 13 minutes ago -
Windows 11 Windows Updater question
by
Tex265
13 hours, 9 minutes 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.