|
||||||
|
AfterUpdate & DLookup By Richard Rost 4 years ago 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 files from class plus get access to the Code Vault. If you're not a member, Join Today! Recommended Course
Pre-Requisities
Links
|
||||||||||||||||||||||||
| |||
Keywords: TechHelp Access afterupdate dlookup PermaLink AfterUpdate & DLookup in Microsoft Access |