Access 2007-2019
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
 
Home   News   Courses   Seminars   Templates   Help   TechHelp   Forums   Order   Contact   Logon  
 
Home > TechHelp > Directory > Access > AfterUpdate DLookup
 
Access AfterUpdate & DLookup
By Richard Rost   Richard Rost on Facebook Richard Rost on Twitter Richard Rost on LinkedIn Email Richard Rost   41 days ago

AfterUpdate Event & DLookup Function in Microsoft Access - How to 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?"


 S  M  L  XL  FS  

LEARN MORE:
AfterUpdate Events: https://599cd.com/afterupdate
DLookup Function: https://599cd.com/dlookup
AutoNumbers: https://599cd.com/autonumber
String Concatenation: https://599cd.com/concatenation
Excel VLOOKUP: https://599cd.com/vlookup
Excel XLOOKUP: https://599cd.com/xxlookup

BONUS FOR CHANNEL MEMBERS:
Silver Members and up get access to an EXTENDED CUT of this video which covers additional examples. That video will show you how 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.

MEMBERS ONLY VIDEO: 
https://youtu.be/AP2q7dir6qg

BECOME A MEMBER:
https://youtube.com/channel/UCl7-jJie4ifOVK87FINIuDg/join

MEMBERS TOPICS:
InputBox Function:  https://599cd.com/inputbox
NZ Function: https://599cd.com/nz
Type Casting: https://599cd.com/type+conversion
CInt Function: https://599cd.com/cint
IsNumeric Function: https://599cd.com/isnumeric
DoCmd.RunSQL: https://599cd.com/runsql
DoCmd.SetWarnings: https://599cd.com/setwarnings
SQL Seminar: https://599cd.com/sql

RESOURCES:
FREE Customer Template Database: https://599cd.com/XCDT
FREE Access Level 1: https://599cd.com/Free101
$1 Access Level 2: https://599cd.com/1Dollar
Your Questions Answered: https://599cd.com/TechHelp
Learning Connection 50% OFF: https://599cd.com/Connection
Survey: https://599cd.com/survey

Richard's Blog: https://599cd.com/blog
Access Forum: https://599cd.com/AccessForum
Twitter: https://twitter.com/LearningAccess

Email Me: amicron@gmail.com

QUESTIONS:
Post your questions below!

 

Post a New Comment or Question
 
Only students may post right now. Click here for more information on how you can set up an account. If you are a student, please LOG ON first.
 
Subscribe
 

You may want to read these articles from the 599CD News:

9/24/2020Export Reports to PDF One Click
9/24/2020Access Troubleshooting Checklist
9/24/2020Access SharePoint Seminar Outline
9/21/2020Access Updater Upgrades
9/21/2020Command Line Parameters
9/20/2020Access Updater 1.0 Instructions
9/20/2020Access Updater v 1.0
9/17/2020Track Changes to Data
9/13/2020Custom Form Backgrounds
9/11/2020Form Design Aesthetics
 
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Account Login
Online Theater
Downloads
Lost Password
Free Upgrades
Insider Circle
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Articles
Search The Site
Waiting List
Production Schedule
Collapse Menus
Help
 
Live Chat
Customer Support
WalkThru Tutorials
Troubleshooting
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Order
 
Video Tutorials
Handbooks
MYOLP Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Live Chat
General Info
Support Policy
Contact Form
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Facebook    Twitter

YouTube Channel    LinkedIn

Blog RSS Feed   
Keywords: TechHelp Access afterupdate dlookup   PermaLink