Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > TechHelp > Directory > Access > DLookup < Markup | Quote, Invoice, Receipt >
Back to DLookup    Comments List
DLookup Combo Box Upload Images   Link   Email  
Ramona Woitas        
2 years ago
I have a Subject Table & Form, Category Table & Form, and a Topic Table & (Single) Form. TopicF (Based on TopicT) has Subject / Category Cascading and a Topic Title.

Then on my TopicListF (Continuous - Based on TopicT) to display data only. I don't want anyone to be able to change data on this form. I will be adding filter, sort, search later. I use the TopicID to Double Click to Open the Single TopicF.

SubjectCombo is populating data fine.  How do I Lookup the Category value on TopicF?
Kevin Yip       
2 years ago
Since you said Subject and Category are cascading combo boxes, you can just requery the Category combo box to update its items.

In VBA, when TopicF opens (form's open event), run:
CategoryCombo.Requery
Ramona Woitas        
2 years ago
Awesome.  Thank you Kevin!  :)
Ramona Woitas        
2 years ago
It worked!  Yaay!  Sorry but I have 1 More Question.
In TopicListF b/o TopicT - Is it possible to use text boxes on TopicListF for the Subject and Category Fields - and then use DLookup to lookup the data?  Instead of using combo boxes on TopicListF for the fields?
Kevin Yip       
2 years ago
I don't think you need DLookup to achieve either of the goals you mentioned in your first post: filter TopicListF, and double-click TopicID to open TopicF.  Both can be achieved with filters.  You filter TopicListF based the subject and category criteria (changing the form's Filter property in VBA), and you open TopicF with the DoCmd.OpenForm command that has a filter; e.g.  DoCmd.OpenForm "TopicF", , , "TopicID=" & TopicID
Ramona Woitas        
2 years ago
Woooo Hooo.  Thank you Kevin!
Ramona Woitas        
2 years ago
Hi Kevin!  Sorry to bother you.  I thought I knew what you meant about the filter, but I guess I didn't, because I can't get it to work.  Can you elaborate on what you said below.  Not sure how to change the Filter property in VBA.
     You filter TopicListF based the subject and category criteria (changing the form's Filter property in VBA)
Kevin Yip       
2 years ago
Hi Ramona, a form's Filter property is the same one you see on the property sheet when you design the form.  It can also be set in VBA.  E.g. Me.Filter = "ID = " & ID

This thread is now CLOSED. If you wish to comment, start a NEW discussion in DLookup.
 

 
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/21/2024 6:26:43 AM. PLT: 1s