Access 2007-2016
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
Home   News   Tips   Glossary   Templates   Forums   Help   Logon   Order   Contact Us  
NEW: Microsoft Access Developer Level 8    dismiss


Microsoft Access Forum
By Richard Rost   Richard Rost on Facebook Richard Rost on Twitter Richard Rost on Google Plus Richard Rost on LinkedIn Email Richard Rost

This forum is for the discussion of Microsoft Access.

Access is my personal specialty. Have questions? Comments? Want to discuss how to do something? Post it here. Also, I get a LOT of questions sent to me in Email from people around the world. I'll post the interesting ones in here. Feel free to comment on them.

Click Here To Subscribe to this forum and receive an email update whenever new posts are added, just scroll down to the bottom of this page and enter your email address in the comment form.

Permanent Link
Keywords: microsoft access forum
Post New Topic

Read Filtering Subforms on Main Form by Stephen K @ 3/10/2018
Hello Alex,

Thanks for the prompt response.
Yes, RegisterF is my main form and ProductListF is my subform.

So I got the error messages to stop BUT nothing is happening. I decided to take it to VBA code. Here is what I have so far:

Private Sub PLbtn_Click()

Dim SQL As String

SQL = ProudctQ

    DoCmd.GoToControl "ProductListF"
    DoCmd.ApplyFilter , Forms!RegisterF!ProductListF.Form!ItemNumber Like "*" & Forms!RegisterF!ProductListF.Form!Text28 & "*" Or Forms!RegisterF!ProductListF.Form!ItemDescription Like "*" & Forms!RegisterF!ProductListF.Form!Text28 & "*"

End Sub

I noticed when I enter a keyword into the textbox that matches a product I know thats in there and I click the button (PLbtn) on my subform, the date that is on my main form disappears.

Its some really weird behaviour.

Reply from Alex Hedley:

Depending on where the code is, whether it's in the form or the subform depends on how you reference the forms it wants to talk to. They have to be open too.
Show Just This Thread        Post Reply
Read Filtering Subforms on Main Form by Stephen K @ 3/9/2018
Hi guys,

I have a continuous subform on my main form. In the subform, i have set up a textbox and search button in the subforms footer. Behind the search button is a macro that looks up the text of the content in the textbox and filters the form accordingly.
The filter works perfectly for the subform when its not in the main form. Here is whats in my Where Condition:

[ItemNumber] Like "*" & [Forms]![RegisterF]![ProductListF].[Form]![RegisterSearchBar] & "*" Or [ItemDescription] Like "*" & [Forms]![RegisterF]![ProductListF].[Form]![RegisterSearchBar] & "*"

Please help

Reply from Alex Hedley:

Can you explain what the names of each form are?
So the [RegisterF] is the Main Form?
The [ProductListF] is the SubForm?
Show Just This Thread        Post Reply

Collapse All Topics


Post Your Comments or Subscribe
    If you would like to be notified of new posts on this forum,
    just enter your email address below. It will be kept private.
If you just want to subscribe to get email updates when this forum is updated, then enter your name and email address and check the Notify Me box below. If you would optionally like to add your comments below to be posted, they are welcome.
  Your Name:  Required
  Your Email:  NOT Public


Sorry about this step. It's just to keep the spam bots away:
  Verify: What is 6+6:
  Notify me when the this forum is updated
  Remember Me for my next comments
Please do not use this form for Customer Service inquiries! If you have questions about your account, shipping info, courses you've ordered, need passwords, etc. please use the Customer Service Center instead.

I value your comments. They will be displayed on this page (above). Your name will be displayed, but your email address will not be.
As always, I promise to never give away your personal information to anyone else, ever.

NOTE: If you don't leave your name and email address, DON'T expect a reply. I can't promise a personal reply to everyone who posts here. I TRY my best, but I cannot guarantee it. If you don't leave your real name and email address, I won't even bother. I usually just hit DELETE. -Richard



You may want to read these articles from the 599CD News:

7/31/2018Microsoft Access Developer 8
3/23/2018Microsoft Access Developer 7
2/22/2018Microsoft Access Developer 6
2/22/2018Access Assistance Available
2/21/2018Putting Access Databases Online
2/18/2018Microsoft Access Developer 5
2/10/2018Microsoft Access Developer 4
2/1/2018Access Tip: Salary History
7/19/2017Access Developer 2 and 3 Released
7/19/2017Microsoft Access Developer 3

Visual Basicindex
Account Login
Online Theater
Lost Password
Free Upgrades
Insider Circle
Student Databases
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search Our Site
Waiting List
Production Schedule
Collapse Menus
Live Chat
Customer Support
WalkThru Tutorials
Consulting Services
About Us
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Video Tutorials
MYOLP Memberships
Idiot's Guide to Excel
Volume Discounts
Payment Info
Terms of Sale
Gift CDs
Live Chat
General Info
Support Policy
Contact Form
Email Us
Mailing Address
Phone Number
Fax Number
Course Survey
Facebook    Twitter

Google Plus    LinkedIn

Blog RSS Feed    YouTube Channel
Richard Rost Microsoft MVP