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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Autofill Part Description based on Part Number

Status
Not open for further replies.

CJSSC

Programmer
Nov 3, 2002
26
US
I need to autofill a textbox with information (part description) from a master BOM table based on an entered part number. I've tried OnGetFocus event procedure but I can't seem to get it right.

Thanks in advance.

CJ
 
Try the AfterUpdate event of the part number textbox, e.g.:

-------
Private Sub txtPartNumber_AfterUpdate()

Me.txtPartDesc = DLookup("[PartDesciption]", "BOM", "[PartNumber] = " & Me.txtPartNumber)

End Sub
-------

Cheers,
Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top