Computer Learning Zone CLZ Access Excel Word Windows

The absence of evidence is not the evidence of absence.

-Carl Sagan
 
Home   Courses   Seminars   Templates   TechHelp   Fast Tips   Forums   Help   Contact   Join   Order   Logon  
 
Home > TechHelp > Access >
TechHelp


Back to TechHelp
 

AfterUpdate Dlookup Upload Images   Link  
William Kennedy 
34 days 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
34 days ago

William Kennedy
34 days ago

William Kennedy
34 days ago

Richard Rost
11 days 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
11 days 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.
Add a ReplyUpload an Image


Back to TechHelp Comments
 

Start a NEW Conversation
 
Only students may post on this page. Click here for more information on how you can set up an account. If you are a student, please Log On first. Non-students may only post in the Visitor Forum.
 
Subscribe
Subscribe to TechHelp
Get notifications when this page is updated
 
 
 
 

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
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

Blog RSS Feed    Twitter

YouTube Channel    LinkedIn
Copyright 2023 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 2/8/2023 1:01:06 PM.