Hi, nice easy for you guys….
I have a report based on a query that needs two values – week1 and week2
I want the user to have four buttons to request quarterly reports (1-13,14-26,27-39,40-53) I have the buttons but cannot get the report to stop asking me for the [week1] and [week2] values in the query.
I have tried the method of [fieldname] = [controlonform] that online help suggests , on a query with no prompts, but this returns an error as being unable to find the [fieldname] in the table !
Any suggestions greatly received
![]() |
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 |
-
report values in form (97)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » report values in form (97)
- This topic has 5 replies, 4 voices, and was last updated 23 years, 9 months ago.
AuthorTopicWSfatherjack
AskWoody LoungerJuly 3, 2001 at 9:45 am #357640Viewing 1 reply threadAuthorReplies-
WSMarkJ
AskWoody Lounger -
WSfatherjack
AskWoody LoungerJuly 3, 2001 at 11:50 am #531748Mark, I was hoping that all the user will do is click on one of 4 buttons. I should be able to get VBA to handle the change of value according to which button is pressed.
Changing the query is not possible in so far as it supports several other forms, reports etc. Surely I can get VBA to supply the values required rather than leave the value in a form somewhere? -
WSMarkJ
AskWoody LoungerJuly 3, 2001 at 12:06 pm #531751Ahhh…. In that case you might want to use the Tag property of the form. When the uesr clicks the desired button, set the tag property to whatever you want. (Remember, the tag is a string even if it contains numbers You may need to use CInt() or CLng() to convert the string tag value to an integer or long depending on what your query needs.)
Then have the criteria in the query set to read the tag property from the form: [Forms]![FormName]![Tag]
HTH
-
WSshark174
AskWoody LoungerSeptember 4, 2001 at 3:18 am #540456I assume you have a docmd.openreport in the Onclick event for the command button. If so, the simplest thing to do is to add a “where” clause at the end of the docmd.
Docmd.openreport “rptMyReport”,acViewPreview,,”[Date] between #01/01/2001# and #03/31/2001#”
Note that there are two commas between the acViewPreview and the where clause.
-
-
-
WSwillyboy
AskWoody LoungerSeptember 2, 2001 at 11:50 am #540258You can try this: Instead of one report, make three more copies and alter the copy names by adding Qtr1, Qtr2, Qtr3, and Qtr4. Let all four reports point to the same query, but alter the week fields on the reports so that they have a default value of the appropriate week( you may need to use a select statement, where week1=1, week2=13 (for Qtr1)). I am at home and I can’t remember exactly what you need to do, but I’ve done this before and I’m positive this will work. Also, remove the parameters in the query. Let your four buttons open the reports. This way, the user won’t be asked for a parameter.
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
-
Best tools for upgrading a Windows 10 to an 11
by
Susan Bradley
3 hours, 41 minutes ago -
The end of Windows 10 is approaching, consider Linux and LibreOffice
by
Alex5723
4 hours, 41 minutes ago -
Extended Windows Built-in Disk Cleanup Utility
by
bbearren
5 hours, 51 minutes ago -
Win 11 24H2 June 2025 Update breaks WIFI
by
dportenlanger
16 hours, 48 minutes ago -
Update from WinPro 10 v. 1511 on T460p?
by
CatoRenasci
6 hours, 21 minutes ago -
System Restore and Updates Paused
by
veteran
19 hours, 19 minutes ago -
Windows 10/11 clock app
by
Kathy Stevens
6 hours, 24 minutes ago -
Turn off right-click draw
by
Charles Billow
22 hours, 33 minutes ago -
Introducing ChromeOS M137 to The Stable Channel
by
Alex5723
1 day, 2 hours ago -
Brian Wilson (The Beach Boys) R.I.P
by
Alex5723
3 hours, 59 minutes ago -
Master patch listing for June 10, 2025
by
Susan Bradley
1 day, 3 hours ago -
Suggestions for New All in One Printer and a Photo Printer Windows 10
by
Win7and10
6 hours, 33 minutes ago -
Purchasing New Printer. Uninstall old Printer Software First?
by
Win7and10
1 day, 9 hours ago -
KB5060842 Issue (Minor)
by
AC641
49 minutes ago -
EchoLeak : Zero Click M365 Copilot leak sensitive information
by
Alex5723
1 day, 16 hours ago -
24H2 may not be offered June updates
by
Susan Bradley
9 hours, 24 minutes ago -
Acronis : Tracking Chaos RAT’s evolution (Windows, Linux)
by
Alex5723
2 days, 5 hours ago -
June 2025 updates are out
by
Susan Bradley
3 hours, 51 minutes ago -
Mozilla shutting Deep Fake Detector
by
Alex5723
2 days, 20 hours ago -
Windows-Maintenance-Tool (.bat)
by
Alex5723
2 days, 5 hours ago -
Windows 11 Insider Preview build 26200.5641 released to DEV
by
joep517
2 days, 22 hours ago -
Windows 11 Insider Preview build 26120.4250 (24H2) released to BETA
by
joep517
2 days, 22 hours ago -
Install Office 365 Outlook classic on new Win11 machine
by
WSrcull999
2 days, 22 hours ago -
win 10 to win 11 with cpu/mb replacement
by
aquatarkus
2 days, 14 hours ago -
re-install Windows Security
by
CWBillow
3 days, 1 hour ago -
WWDC 2025 Recap: All of Apple’s NEW Features in 10 Minutes!
by
Alex5723
3 days, 5 hours ago -
macOS Tahoe 26
by
Alex5723
2 days, 23 hours ago -
Migrating from win10 to win11, instructions coming?
by
astro46
14 hours, 31 minutes ago -
Device Eligibility for Apple 2026 Operating Systems due this Fall
by
PKCano
2 days, 14 hours ago -
Recommended watching : Mountainhead movie
by
Alex5723
2 days, 15 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.