3 hours ago: Our file storage provider is running maintenance today. If any videos don't load, wait a minute, refresh the page, and try again. Sorry for any inconvenience.  Dismiss
 
Computer Learning Zone CLZ Access Excel Word Windows

I believe in innovation and that the way you get innovation is you fund research and you learn the basic facts.

-Bill Gates
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > TechHelp > Access >
Back to TechHelp    Comments List
AfterUpdate Dlookup Upload Images   Link   Email  
William Kennedy       
18 months 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       
18 months ago

William Kennedy       
18 months ago

William Kennedy       
18 months ago

Richard Rost             
18 months 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       
18 months 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 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 7/14/2024 9:27:32 AM. PLT: 1s