|
||||||
AfterUpdate & DLookup By Richard Rost ![]() ![]() ![]() AfterUpdate Event & DLookup - Look up Values from Table to a Form In this Microsoft Access tutorial, I will show you how to look up and auto populate fields in a form using the DLookup function and the AfterUpdate event in VBA (Visual Basic). Don't worry if you've never done any programming before. I'll take it step by step. Chris (Gold Member) asks, "I assign zone numbers to customers based on the state the customer is in. However, this isn’t a rule. There may be exceptions, such as if a sales rep brings in a new customer from out of his zone. Is there a way to automatically fill in the default zone for the customer when I enter his state, but still be able to change it?" MembersI'll show you how to prompt the user for the Zone number if the State isn't found in the table. We will learn how to use the InputBox, NZ, CInt, and IsNumber functions, and learn about type casting.
Silver Members and up get access to view Extended Cut videos, when available. Gold Members can download the database template from class plus get access to the Code Vault. If you signed up on YouTube you have to register on my YouTube Find User page so I can set up your account here on my web site. If you're not a member, Join Today!
|
Learn MoreFREE Access Beginner Level 1 Free TemplatesTechHelp Free Templates |
ResourcesMailing List - Get emails when new videos released Questions?Please feel free to post your questions or comments below or post them in the Forums. |
Age | Subject | From | |
5 months | inserting in T without dlookup | Andrea Buckridge | |
2 years | Passing a string to the parent | Despina Karayanni | |
2 years | AfterUpdate Brain Wrecking | Pete Santiago | |
Check out these other pages that may be of interest to you: |
|
| |||