troubleshooting Question

Populate form field with a DLookup

Avatar of SteveL13
SteveL13Flag for United States of America asked on
Microsoft Access
2 Comments1 Solution68 ViewsLast Modified:
I should know how to do this but I'm drawing a blank.  I have a field on a form.  Its record source is a field in the bound table.  I want to populate it and have it drop in the field in the table with a DLookup like:

=DLookUp("[dbUserID]","LOCALtblCurrentUser")

but I can't figure out where to put that code.  I've tried the onopen event of the form and also the beforeupdate event of the form but it doesn't work.

Any help much appreciated.
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros