Pookiemeister
Well-known Member
- Joined
- Jan 6, 2012
- Messages
- 626
- Office Version
- 365
- 2010
- Platform
- Windows
I'm still learning Access and I have a few questions.
1. I believe that "Control Source" links the matching field textbox from the form to that field in the table. Is that correct? I learned that if I need to pull data to the matching field in the forms textbox DLookup is the best option.
2. If I put the DLookup inside the Control Source, how do I bind it to the table?
So I have a query named "EmployeeQuery" that DLookups uses to populate that textbox.
Since this code is placed inside the "Control Source" how can I bind that found textbox.value to the table? I hope my question is easy to understand. Thank you.
1. I believe that "Control Source" links the matching field textbox from the form to that field in the table. Is that correct? I learned that if I need to pull data to the matching field in the forms textbox DLookup is the best option.
2. If I put the DLookup inside the Control Source, how do I bind it to the table?
So I have a query named "EmployeeQuery" that DLookups uses to populate that textbox.
VBA Code:
=DLookUp("FullName","EmployeeQuery","Badge_ID = " & Nz([EmpBadgeID],0))
Since this code is placed inside the "Control Source" how can I bind that found textbox.value to the table? I hope my question is easy to understand. Thank you.