Access
A family of Microsoft relational database management systems designed for ease of use.
340 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Here is the formula:
Me.txtpost = DLookup([Designation], [tblStaff], "EmployeeName=" & Me.txtname)
Me.txtpost: the field where I want to retrieve the data.
Designation: the data that I want to retrieve.
tblStaff: the tablke where the retrival data is stored.
EmployeeName = Me.txtbname: the creteria
Thanks for posting your question in the Microsoft Q&A forum.
If Me.txtname is a text field, your code should be in this format:
Me.txtpost = DLookup("Designation", "tblStaff", "EmployeeName='" & Me.txtname & "'")
I hope it fix your request