Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dlookup a value and displaying it on a form

Status
Not open for further replies.

swmagic

Programmer
May 18, 2004
23
US

This is probably an easy one.

I have an SSN that the user types into form field.

The Dlookup (which works) should display the result back to the form in the Exit Event Procedure for the SSN field that that they type in.

[Forms].[frmAddSBNbr].[Last Name] = DLookup("[Last Name]", "tblEmployee", "[SSN] = '" & [StaffSSN] & "'")

My syntax is wrong. What would correct this and display the results in the same form that contains the SSN?

Thanks!
 
Have you tried the AfterUpdate event instead ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top