Computer Learning Zone CLZ Access Excel Word Windows

Power comes not from knowledge kept but from knowledge shared.

-Bill Gates
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > TechHelp > Access >
Back to TechHelp    Comments List
Upload Images   Link   Email  
AfterUpdate Dlookup
William Kennedy 
    
2 years ago
Sorry to be dense Kevin.  But Im having a difficult time understanding the nuance of AfterUpdateDlookup.  I know your previous solution worked but I have three more instances on this form that I hope to get to work; Suburb/PostalCode, PresentOffice/OfficeRanking and MemberType/Annual Dues.   Right now, Im working on PresentOffice/OfficeRanking and it does not work.  
OfficeRanking is a Numeric Field that I use to sort and group members in different reports.  The OfficeRanking values are changed each year when members hold different offices.

Suburb/PostalCode are both Short text fields.  I hope it will be the same structure as the last one you helped with.
MemberType/Annual Dues  MemberType is short Text and Annual Dues is currency.  

This is what I think AfterUpdate Dllokup for PresentOffice/ OfficeRanking should be but it does not work.

Private PresentOfficeCbo_AfterUpdate()
Form's NameTargetField = Nz(Dlookup(HelperTable"FieldName", "HelperTableName", Form's "FieldName=""" & Form's ComboFieldName.Column(1) & """), "")

End Sub

Private PresentOfficeCbo_AfterUpdate()
    OfficeRanking=Nz(Dlookup("OfficeRanking","Mem_125_LodgeOffice_HT","PresentOffice="""&PresentOfficeCbo.column(1)&"""),"")

End Sub
William Kennedy OP 
    
2 years ago

William Kennedy OP 
    
2 years ago

William Kennedy OP 
    
2 years ago

Richard Rost 
          
2 years ago
I didn't help you with the initial question but just looking at this your VBA code is all a mess. Let me see it as a screen shot as it exists in your database.


William Kennedy OP 
    
2 years ago
Thanks Richard.  Worked for a few days and found a different way to do the same thing.  Had to change the structure a little.

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

 
 
 

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 2025 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 3/27/2025 5:45:26 AM. PLT: 1s