|
||||||
|
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 files from class plus get access to the Code Vault. If you're not a member, Join Today!
|
Learn MoreFREE Access Beginner Level 1 Free TemplatesTechHelp Free Templates |
ResourcesDiamond Sponsors - Information on our Sponsors Questions?Please feel free to post your questions or comments below or post them in the Forums. |
Age | Subject | From | |
3 years | inserting in T without dlookup | Andrea Buckridge | |
4 years | Passing a string to the parent | Despina Karayanni | |
4 years | AfterUpdate Brain Wrecking | Pete Santiago | |
| |||
Keywords: TechHelp Access afterupdate dlookup PermaLink AfterUpdate & DLookup in Microsoft Access |