-
WSrobinr
AskWoody LoungerI think it would be the database. It is being used by 1 user right now. It is going to be placed on a network drive so that 3 people can access it. It is just a regular Access 2000 database (tables, forms and reports).
Thanks Hans. -
WSrobinr
AskWoody LoungerThanks Hans – don’t know how to write code so will have to do with what I have.
-
WSrobinr
AskWoody LoungerI thought it would be easier for the person using the DB to have a button that they could click. I can do the toolbar but I’m still not sure how to get the filter on subform. When I try – it just filters the subform.
thanks
Robin -
WSrobinr
AskWoody LoungerYes, they are datasheet view.
-
WSrobinr
AskWoody LoungerI guess I didn’t explain this very well. I have a form that has a command button that the user can click on and activate the Filter by Form option. From the form the user can select anything on the main form and click apply filter and it filters for the main form and the 2 subforms. What I would like the user to be able to do is click the command button then be able to click into either of the 2 subforms make a selection or set criteria then click apply filter.
thank you in advance to all that can help -
WSrobinr
AskWoody LoungerThank you all for your help and suggestions. This is a wonderful form and everyone is so helpful.
-
WSrobinr
AskWoody LoungerHow do I get the OrderAmount stored in my Order Details table.
Thanks -
WSrobinr
AskWoody LoungerRudi / Hans thanks for your responses. Yes, I have a table called company specialty, and a linked table called specialty. It is then linked to company. I have 209 specialty items that can be selected. The linking table holds company ID and Specialty ID along with Applicable (Yes/No). The company form is very complex with 2 other subforms on it. So I wanted users to be able to click a command button that would open up the 209 different specialties showing what had already been selected but allowing them to select or deselect from the list. The problem was that when I created the linked form some of the companies only have 13 or 14 specialties listed instead of the 209.
Thank you in advance. I am working all day tomorrow in case you get back to me and I don’t respond. -
WSrobinr
AskWoody LoungerRudi / Hans thanks for your responses. Yes, I have a table called company specialty, and a linked table called specialty. It is then linked to company. I have 209 specialty items that can be selected. The linking table holds company ID and Specialty ID along with Applicable (Yes/No). The company form is very complex with 2 other subforms on it. So I wanted users to be able to click a command button that would open up the 209 different specialties showing what had already been selected but allowing them to select or deselect from the list. The problem was that when I created the linked form some of the companies only have 13 or 14 specialties listed instead of the 209.
Thank you in advance. I am working all day tomorrow in case you get back to me and I don’t respond. -
WSrobinr
AskWoody LoungerThanks so much Hans – worked great.
-
WSrobinr
AskWoody LoungerThanks so much Hans – worked great.
-
WSrobinr
AskWoody LoungerHi Hans – Sorry I was out for the evening. Hope you still are following this.
I set up a command button with an On Click procedure as follows:Private Sub Command38_Click()
On Error GoTo errhandlerDim fil As Form
Dim stDocName As StringstDocName = “Alphabetical Contact List” ‘**The report you wish to preview**
Set fil = Forms![Frm_Company] ‘**The form you have added the button to**If iFilterType = acApplyFilter Then
DoCmd.OpenReport stDocName, acPreview, , fil.Filter ‘**If a filter has been set on the form then apply it to the report**Else
DoCmd.OpenReport stDocName, acPreview ‘**If there is no filter then just generate the normal report**
End If
errhandler:
End Sub -
WSrobinr
AskWoody LoungerHi Hans – Sorry I was out for the evening. Hope you still are following this.
I set up a command button with an On Click procedure as follows:Private Sub Command38_Click()
On Error GoTo errhandlerDim fil As Form
Dim stDocName As StringstDocName = “Alphabetical Contact List” ‘**The report you wish to preview**
Set fil = Forms![Frm_Company] ‘**The form you have added the button to**If iFilterType = acApplyFilter Then
DoCmd.OpenReport stDocName, acPreview, , fil.Filter ‘**If a filter has been set on the form then apply it to the report**Else
DoCmd.OpenReport stDocName, acPreview ‘**If there is no filter then just generate the normal report**
End If
errhandler:
End Sub -
WSrobinr
AskWoody LoungerI have one form with 2 combo boxes that I can select the Company Type then select a company that belongs to that type. It displays the information for the Company on the main part of the form and in 1 subform, the offices that belong to that company and in another subform the contacts that belong to the office that you click on. I then created a filter button that will display a report . But first you have to click into the company name control on the form, then click the Filter by Selection button on the toolbar, then click my command button that previews the filtered information (Company, Offices and Contacts) of the filter by selection. When you close the report it returns to the form but then you have to click the remove filter button on the toolbar. I would like the command button I created to: Focus on the Company Name that is selected (move the forcus to it), do a Filter by Selection automatically and open the report; when you close the report to automatically remove the filter from the main Company form.
Hopefully I have explained it a little better. Thanks Hans
-
WSrobinr
AskWoody LoungerI have one form with 2 combo boxes that I can select the Company Type then select a company that belongs to that type. It displays the information for the Company on the main part of the form and in 1 subform, the offices that belong to that company and in another subform the contacts that belong to the office that you click on. I then created a filter button that will display a report . But first you have to click into the company name control on the form, then click the Filter by Selection button on the toolbar, then click my command button that previews the filtered information (Company, Offices and Contacts) of the filter by selection. When you close the report it returns to the form but then you have to click the remove filter button on the toolbar. I would like the command button I created to: Focus on the Company Name that is selected (move the forcus to it), do a Filter by Selection automatically and open the report; when you close the report to automatically remove the filter from the main Company form.
Hopefully I have explained it a little better. Thanks Hans
![]() |
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 |

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 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
2 hours, 50 minutes ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
2 hours, 57 minutes ago -
regarding april update and may update
by
heybengbeng
4 hours, 26 minutes ago -
MS Passkey
by
pmruzicka
30 minutes ago -
Can’t make Opera my default browser
by
bmeacham
12 hours, 6 minutes ago -
*Some settings are managed by your organization
by
rlowe44
1 hour, 23 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
11 hours ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
1 day, 6 hours ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
1 day, 15 hours ago -
AI slop
by
Susan Bradley
5 hours, 48 minutes ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
1 day, 16 hours ago -
Two blank icons
by
CR2
4 hours, 43 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
2 days, 1 hour ago -
End of 10
by
Alex5723
2 days, 4 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
1 day, 2 hours ago -
test post
by
gtd12345
2 days, 10 hours ago -
Privacy and the Real ID
by
Susan Bradley
2 days ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
3 hours, 2 minutes ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
2 days, 14 hours ago -
Upgrading from Win 10
by
WSjcgc50
1 day, 2 hours ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
1 day, 6 hours ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
3 days, 6 hours ago -
The story of Windows Longhorn
by
Cybertooth
2 days, 18 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
3 days, 8 hours ago -
Are manuals extinct?
by
Susan Bradley
8 hours, 55 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
3 days, 17 hours ago -
Network Issue
by
Casey H
3 days, 4 hours ago -
Fedora Linux is now an official WSL distro
by
Alex5723
4 days, 5 hours ago -
May 2025 Office non-Security updates
by
PKCano
4 days, 6 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
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.